Skip to content

Commit 50099eb

Browse files
committed
🚀 More CUDA simple examples
1 parent 159997b commit 50099eb

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ default: configure build test
2020
# CMake lifecycle
2121
# -------------------------
2222
configure:
23-
cmake -S . -B {{BUILD_DIR}} {{GENERATOR}} {{CMAKE_FLAGS}}
23+
cmake -S . -B {{BUILD_DIR}} {{GENERATOR}} {{CMAKE_FLAGS}} -DBUILD_CUDA=ON
2424

2525
build: configure
2626
cmake --build {{BUILD_DIR}} -j

crates/cuda_hello/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ set(CMAKE_CUDA_STANDARD_REQUIRED ON)
77
set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
88
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
99

10-
add_executable(cuda_hello main.cu)
10+
add_executable(cuda_hello_world hello.cu)
1111

1212
find_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.

crates/cuda_hello/reduce.cu

Whitespace-only changes.

crates/cuda_hello/vecadd.cu

Whitespace-only changes.

0 commit comments

Comments
 (0)