https://github.com/ahdhn/cudatemplate
Template for starting CUDA/C++ project using CMake with Github Action for CI
https://github.com/ahdhn/cudatemplate
cmake cuda template
Last synced: about 1 year ago
JSON representation
Template for starting CUDA/C++ project using CMake with Github Action for CI
- Host: GitHub
- URL: https://github.com/ahdhn/cudatemplate
- Owner: Ahdhn
- Created: 2020-02-14T01:41:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-29T15:18:35.000Z (over 3 years ago)
- Last Synced: 2025-03-29T11:22:36.799Z (about 1 year ago)
- Topics: cmake, cuda, template
- Language: CMake
- Homepage:
- Size: 43 KB
- Stars: 29
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CUDATemplate [](https://github.com/Ahdhn/CUDATemplate/actions/workflows/Windows.yml) [](https://github.com/Ahdhn/CUDATemplate/actions/workflows/Ubuntu.yml)
My template for starting a new CUDA project using CMake on Windows (Visual Studio) or Linux (gcc, clang). The template also includes minimal YAML scripts for CI using Github Actions on both Windows (Visual Studio 2019) and Linux (Ubuntu).
## Build
You might first need to change the project name in the `CMakeLists.txt` and the folder name and fill in any `TODO`. Then simply run
```
mkdir build
cd build
cmake ..
```
Depending on the system, this will generate either a `.sln` project on Windows or a `make` file for a Linux system.