-
Notifications
You must be signed in to change notification settings - Fork 77
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
[CMake] Add CMAKE_CUDA_ARCHITECTURES to CMakeLists.txt #303
Conversation
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
@@ -531,6 +531,15 @@ else() | |||
set(CMAKE_CUDA_STANDARD 17) | |||
endif() | |||
|
|||
if ((USE_CUDA AND USE_CUTLASS)) | |||
if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES) | |||
set(CMAKE_CUDA_ARCHITECTURES "75;80;86;89;90") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likely we will have to remove 75 and add 87 in this list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better way is to avoid setting CMAKE_CUDA_ARCHITECTURES
in cmake file, which might contaminate other downstream projects, but instead configure it in CD:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we need to turn on USE_FLASHINFER
in the CD pipelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tweaked this PR and moved the logic to CUDA.cmake
with NVCC version detection. Though it's still part of cmake files. 30c129e
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
1. Bump `3rdparty/cutlass_fpA_intB_gemm` 2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
3rdparty/cutlass_fpA_intB_gemm
CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90
when it's not defined