Skip to content
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

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

LeshengJin
Copy link
Contributor

  1. Bump 3rdparty/cutlass_fpA_intB_gemm
  2. Set CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90 when it's not defined

@MasterJH5574 MasterJH5574 merged commit 1a51b36 into mlc-ai:mlc Jan 1, 2024
5 checks passed
MasterJH5574 pushed a commit that referenced this pull request Jan 1, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 1, 2024
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")
Copy link
Member

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

Copy link
Member

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:

Copy link
Member

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

Copy link
Member

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

junrushao pushed a commit that referenced this pull request Jan 2, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 6, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 6, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 6, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 7, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 10, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 10, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 11, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
MasterJH5574 pushed a commit that referenced this pull request Jan 12, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
junrushao pushed a commit that referenced this pull request Jan 16, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
junrushao pushed a commit that referenced this pull request Jan 17, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
junrushao pushed a commit that referenced this pull request Jan 17, 2024
1. Bump `3rdparty/cutlass_fpA_intB_gemm`
2. Set `CMAKE_CUDA_ARCHITECTURES=75;80;86;89;90` when it's not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants