Skip to content

Commit

Permalink
Small fix for automatic CUDA architecture selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes committed Jun 11, 2018
1 parent 1e9f577 commit 3a1c0c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/SelectCudaComputeArch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ function(CUDA_DETECT_INSTALLED_GPUS OUT_VARIABLE)
if(ITEM VERSION_GREATER CUDA_LIMIT_GPU_ARCHITECTURE OR ITEM VERSION_EQUAL CUDA_LIMIT_GPU_ARCHITECTURE)
list(GET CUDA_COMMON_GPU_ARCHITECTURES -1 NEWITEM)
string(APPEND CUDA_GPU_DETECT_OUTPUT_FILTERED " ${NEWITEM}")
else()
string(APPEND CUDA_GPU_DETECT_OUTPUT_FILTERED " ${ITEM}")
endif()
else()
string(APPEND CUDA_GPU_DETECT_OUTPUT_FILTERED " ${ITEM}")
Expand Down

0 comments on commit 3a1c0c9

Please sign in to comment.