Skip to content

Commit

Permalink
Do not compile Fermi for newere CUDA versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojnnes committed Mar 23, 2019
1 parent 752bc68 commit 3dbf461
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/SelectCudaComputeArch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ endif()
# See: https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#gpu-feature-list

# This list will be used for CUDA_ARCH_NAME = All option
set(CUDA_KNOWN_GPU_ARCHITECTURES "Fermi" "Kepler" "Maxwell")
set(CUDA_KNOWN_GPU_ARCHITECTURES "")

# CUDA 9.X and later do not support the Fermi architecture anymore.
if(CUDA_VERSION VERSION_LESS "9.0")
list(APPEND CUDA_KNOWN_GPU_ARCHITECTURES "Fermi")
endif()
list(APPEND CUDA_KNOWN_GPU_ARCHITECTURES "Kepler" "Maxwell")

# This list will be used for CUDA_ARCH_NAME = Common option (enabled by default)
set(CUDA_COMMON_GPU_ARCHITECTURES "3.0" "3.5" "5.0")
Expand Down

0 comments on commit 3dbf461

Please sign in to comment.