A just-enough template/tutorial for building a CUDA development environment.
This template/tutorial records the necessary steps for developing a CUDA application, listed as follows.
- Create a development container
- Structure your source code
- Setup CMake
- Setup VS Code
If your project is developing on the eda38/eda39 server, skip the prerequisites.
Please install CUDA, CuDNN, Docker, and NVIDIA Container Toolkit on your machine.
- Clone this repository.
git clone --recursive https://github.com/YanjenChen/CUDA-Programming-Template.git
- Install the following VS Code extensions.
- Start VS Code, run the Dev Containers: Reopen in Container command from the Command Palette (
F1
) or quick actions Status bar item. - Build the example project
$ mkdir build && cd build
$ cmake ..
$ make -j8 && make install
- Test the example project
$ python main.py
- You are all set! Begin your development.
You can detail the usage of your application here.
You can detail the installation procedure of your application here.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Yan-Jen Chen - [email protected]