Skip to content

Commit

Permalink
Merge pull request #116 from alicevision/fix/cuda11
Browse files Browse the repository at this point in the history
[cmake] sm 86 is only for cuda >= 11.1
  • Loading branch information
griwodz authored Oct 29, 2020
2 parents c8a669b + d6cb770 commit fafcad9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/ChooseCudaCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ function(chooseCudaCC SUPPORTED_CC SUPPORTED_GENCODE_FLAGS)
#
set(CUDA_MIN_CC 20)
set(CUDA_MAX_CC 86)
if(CUDA_VERSION_MAJOR GREATER_EQUAL 11)
if(CUDA_VERSION VERSION_GREATER_EQUAL 11.1)
set(CUDA_MIN_CC 35)
elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 11)
set(CUDA_MIN_CC 35)
set(CUDA_MAX_CC 80)
elseif(CUDA_VERSION_MAJOR GREATER_EQUAL 10)
set(CUDA_MIN_CC 30)
set(CUDA_MAX_CC 75)
Expand Down

0 comments on commit fafcad9

Please sign in to comment.