# gpu-essentials **Repository Path**: Inkstoneydz/gpu-essentials ## Basic Information - **Project Name**: gpu-essentials - **Description**: GPU 编程基础和核心概念的代码仓库,包括示例代码、教程、练习和相关资源,帮助学习者可以快速掌握 GPU 编程的关键技术和最佳实践。 - **Primary Language**: C++ - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-06-15 - **Last Updated**: 2025-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GPU Essentials This repository contains a collection of reference implementations of fundamental GPU programming patterns with CUDA & MXMACA. ## Getting Started ### Prerequisites ### Getting the GPU essentials Using git clone the repository of GPU Essentials using the command below. ``` git clone ..... ``` Without using git the easiest way to use these samples is to download the zip file containing the current version by clicking the "Download ZIP" button on the repo page. You can then unzip the entire archive and use the samples. ### Building GPU essentials for Linux The Linux samples are built using makefiles or CMakeLists. To use the makefiles, change the current directory to the sample directory you wish to build, and run make: ``` $ cd $ make ``` To use the CMakeLists, change the current directory to the sample directory you wish to build, and run: ``` $ cd $ mkdir build && cd build $ cmake .. && make ``` ## GPU essentials list ### [cuda](cuda/README.md) Some essential samples written with CUDA language, which can be build and run on both NVIDIA GPUs and METAX GPUs. ### [maca](maca/README.md) Some essential samples written with MXMACA language, which can be build and run on METAX GPUs only. ## License License. See [LICENSE](LICENSE)