Skip to content
/ CUDA Public

Want to get started with CUDA? Just look at this repo!

Notifications You must be signed in to change notification settings

Deleter-D/CUDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Introduction

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.

Automatic Installation Steps

Clone this repository to your local machine.

git clone https://github.com/Deleter-D/CUDA.git

If you have SSH configured, you can use the following command instead.

git clone git@github.com:Deleter-D/CUDA.git

Run the automatic compilation installation script.

./install.sh

Manual Installation Steps

Clone this repository to your local machine.

git clone https://github.com/Deleter-D/CUDA.git

If you have SSH configured, you can use the following command instead.

git clone git@github.com:Deleter-D/CUDA.git

Use 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 install

You 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 ../executable

Below is an example of running one of the executable files.

./01_programming_model/01_hello_world

About

Want to get started with CUDA? Just look at this repo!

Topics

Resources

Stars

Watchers

Forks