cmake-cuda-example icon indicating copy to clipboard operation
cmake-cuda-example copied to clipboard

Example of how to use CUDA with CMake >= 3.8

CUDA with CMake 3.8

With a super-recent build of CMake (https://gitlab.kitware.com/cmake/cmake/merge_requests/949), try this:

./run.sh -DCMAKE_VERBOSE_MAKEFILE=On -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache