Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions cmake/flags.cmake
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,8 @@ endforeach()
# Release/Debug flags set by cmake. Such as -O3 -g -DNDEBUG etc.
# So, don't set these flags here.

foreach(capability 30 35 50)
foreach(capability 30 35 50 52 60)
list(APPEND __arch_flags " -gencode arch=compute_${capability},code=sm_${capability}")
endforeach()

if (CUDA_VERSION VERSION_GREATER "7.0")
list(APPEND __arch_flags " -gencode arch=compute_52,code=sm_52")
endif()


set(CUDA_NVCC_FLAGS ${__arch_flags} ${CUDA_NVCC_FLAGS})