Skip to content

Commit fc0aaaf

Browse files
chhwangBinyang2014
andauthored
Auto-detect CUDA arch in CMake GPU check (#666)
Compute capability 60 support is dropped from CUDA 13 Co-authored-by: Binyang Li <[email protected]>
1 parent 2b05908 commit fc0aaaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CheckNvidiaGpu.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(NOT CUDAToolkit_FOUND)
99
return()
1010
endif()
1111

12-
set(CMAKE_CUDA_ARCHITECTURES "60")
12+
set(CMAKE_CUDA_ARCHITECTURES native)
1313
if(NOT CMAKE_CUDA_COMPILER)
1414
# In case the CUDA Toolkit directory is not in the PATH
1515
find_program(CUDA_COMPILER

0 commit comments

Comments
 (0)