Skip to content

Commit 9e0835a

Browse files
authored
cmake: fix templating of SM architecture (#4434)
Signed-off-by: Connor Baker <[email protected]>
1 parent 8c6d69d commit 9e0835a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ if (DEFINED GPU_ARCHS)
177177
message(STATUS "GPU_ARCHS defined as ${GPU_ARCHS}. Generating CUDA code for SM ${GPU_ARCHS}")
178178
separate_arguments(GPU_ARCHS)
179179
foreach(SM IN LISTS GPU_ARCHS)
180-
list(APPEND CMAKE_CUDA_ARCHITECTURES SM)
180+
list(APPEND CMAKE_CUDA_ARCHITECTURES "${SM}")
181181
endforeach()
182182
else()
183183
list(APPEND CMAKE_CUDA_ARCHITECTURES 72 75 80 86 87 89 90)

0 commit comments

Comments
 (0)