Skip to content

[CUDA] fix setting of CUDA architectures and enable support for NVIDIA Blackwell #6812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Feb 2, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update CMakeLists.txt
  • Loading branch information
StrikerRUS authored Feb 2, 2025
commit 421842431d1c0f0a88d612dffba772ef5138bb12
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ if(USE_CUDA)
# reference for mapping of CUDA toolkit component versions to supported architectures ("compute capabilities"):
# https://en.wikipedia.org/wiki/CUDA#GPUs_supported
set(CUDA_ARCHS "60" "61" "62" "70" "75")
message(STATUS "---------------")
message(STATUS ${CUDA_VERSION})
if(CUDA_VERSION VERSION_GREATER_EQUAL "110")
Copy link
Collaborator Author

@StrikerRUS StrikerRUS Feb 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"110" means exactly 110 version during comparison, VERSION_GREATER_EQUAL doesn't know whether and where we want to put a .: 11.0 or maybe 1.10.

list(APPEND CUDA_ARCHS "80")
endif()
Expand All @@ -238,6 +240,7 @@ if(USE_CUDA)
list(APPEND CUDA_ARCHS "90")
endif()
if(CUDA_VERSION VERSION_GREATER_EQUAL "128")
message(STATUS "Using CUDA 128")
list(APPEND CUDA_ARCHS "100")
list(APPEND CUDA_ARCHS "120")
endif()
Expand Down