Skip to content

Commit

Permalink
Decrease default cuda architectures to build on cause the limitation …
Browse files Browse the repository at this point in the history
…of the host compiler. (#10415)
  • Loading branch information
levi131 committed Jan 22, 2024
1 parent 0320ed0 commit 06c9ead
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions cmake/cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ if(BUILD_CUDA)

# NOTE: if you want to use source PTX with a version different from produced PTX/binary, you should add flags
if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
# Tesla P40/P4, Quadro Pxxx/Pxxxx, GeForce GTX 10xx, TITAN X/Xp
list(APPEND CMAKE_CUDA_ARCHITECTURES 60-real)

# V100, TITAN V
list(APPEND CMAKE_CUDA_ARCHITECTURES 70-real)

if(CUDA_VERSION VERSION_GREATER_EQUAL "10.0")
# T4, Quadro RTX xxxx, Txxxx, Geforce RTX 20xx, TITAN RTX
list(APPEND CMAKE_CUDA_ARCHITECTURES 75-real)
Expand All @@ -95,13 +89,6 @@ if(BUILD_CUDA)
# GeForce RTX 30xx
list(APPEND CMAKE_CUDA_ARCHITECTURES 86-real)
endif()

if(CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
# GeForce RTX 40xx
list(APPEND CMAKE_CUDA_ARCHITECTURES 89-real)
# NVIDIA H100
list(APPEND CMAKE_CUDA_ARCHITECTURES 90-real)
endif()
endif()

foreach(CUDA_ARCH ${CMAKE_CUDA_ARCHITECTURES})
Expand Down

0 comments on commit 06c9ead

Please sign in to comment.