File tree Expand file tree Collapse file tree 5 files changed +4
-4
lines changed Expand file tree Collapse file tree 5 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ default: configure build test
2020# CMake lifecycle
2121# -------------------------
2222configure :
23- cmake -S . -B {{ BUILD_DIR}} {{ GENERATOR}} {{ CMAKE_FLAGS}}
23+ cmake -S . -B {{ BUILD_DIR}} {{ GENERATOR}} {{ CMAKE_FLAGS}} -DBUILD_CUDA=ON
2424
2525build : configure
2626 cmake --build {{ BUILD_DIR}} -j
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ set(CMAKE_CUDA_STANDARD_REQUIRED ON)
77set (CMAKE_BUILD_RPATH_USE_ORIGIN ON )
88set (CMAKE_INSTALL_RPATH_USE_LINK_PATH ON )
99
10- add_executable (cuda_hello main .cu)
10+ add_executable (cuda_hello_world hello .cu)
1111
1212find_package (CUDAToolkit REQUIRED)
13- target_link_libraries (cuda_hello PRIVATE CUDA::cudart)
13+ target_link_libraries (cuda_hello_world PRIVATE CUDA::cudart)
1414
15- set_property (TARGET cuda_hello PROPERTY CUDA_ARCHITECTURES native)
15+ set_property (TARGET cuda_hello_world PROPERTY CUDA_ARCHITECTURES native)
File renamed without changes.
You can’t perform that action at this time.
0 commit comments