https://github.com/blazekill/hello-cuda
Cpp + Vcpkg + CUDA + VsCode starter project.
https://github.com/blazekill/hello-cuda
cpp cuda vcpkg vscode
Last synced: 5 days ago
JSON representation
Cpp + Vcpkg + CUDA + VsCode starter project.
- Host: GitHub
- URL: https://github.com/blazekill/hello-cuda
- Owner: BLaZeKiLL
- License: mit
- Created: 2024-12-31T10:12:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-31T10:17:16.000Z (9 months ago)
- Last Synced: 2025-06-02T06:34:09.125Z (4 months ago)
- Topics: cpp, cuda, vcpkg, vscode
- Language: Cuda
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# Hello CUDA
Cpp + Vcpkg + CUDA + VsCode starter project.
## Project Structure
The `mandelbrot` project is an example project and it's `CMakeLists.txt` can be used as a reference.> You can create your own project by creating a new directory and adding it as a sub-directory in the top-level CMakeLists.txt file
## CMake Preset
You can update values in here depending upon your systems and requirements, do take a look at the CMake Cache Variables
- `CMAKE_C_COMPILER` - C compiler path
- `CMAKE_CXX_COMPILER` - C++ compiler path
- `CMAKE_CUDA_COMPILER` - CUDA compiler path
- `CMAKE_TOOLCHAIN_FILE` - vcpkg toolchain file path## Vcpkg
This project assumes [vcpkg](https://vcpkg.io/en/) is installed on your system and the toolchain path is configured in the cmake preset. dependencies can be added by listing them in the vcpkg.json## VSCode
Official [C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) and [CMake](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) vscode extensions are required for this project to work, the base cmake preset is configured to export the compile commands.json file which is configured to be used by extensions in the `.vscode` folder to provide intellisense