cmake-cuda-separate-compilation-linking
cmake-cuda-separate-compilation-linking copied to clipboard
This example builds on the parallel-forall repo separate compilation example by adding CMake to it.
Separate Compilation Linking with CMake
This example builds on the parallel-forall repo separate compilation example by adding CMake to it.
Compile and launch
git clone https://github.com/kriegalex/cmake-cuda-separate-compilation-linking.git cmake-cuda-scl
cd cmake-cuda-scl
mkdir build && cd build
cmake -DCMAKE_CUDA_FLAGS="-arch=sm_60" ..
make -j4
cd bin/ && ls -l
Please change -arch=sm_60 according to your GPU compute capability.