The majority of the code in this repository is derived from the book Professional CUDA C Programming, with the addition of some custom utility classes.
This project is built using CMake. The specific compilation and installation process is outlined below.
Clone this repository to your local machine.
git clone https://github.com/Deleter-D/CUDA.gitIf you have SSH configured, you can use the following command instead.
git clone git@github.com:Deleter-D/CUDA.gitRun the automatic compilation installation script.
./install.shClone this repository to your local machine.
git clone https://github.com/Deleter-D/CUDA.gitIf you have SSH configured, you can use the following command instead.
git clone git@github.com:Deleter-D/CUDA.gitUse CMake to build.
cd build
cmake ..Please ensure that your CMake version is greater than or equal to 3.17.
Once the build is complete, use the make command to compile and install.
make
make installYou can use the make -j32 command during the make process to enable multithreading.
After installation is complete, you can find all executable files in the executable directory at the root.
cd ../executableBelow is an example of running one of the executable files.
./01_programming_model/01_hello_world