Skip to content

Commit b2106a4

Browse files
committed
add sm100 sm100a sm120 sm120a to CMAKE_CUDA_ARCHITECTURES
1 parent fad8a9e commit b2106a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(lightllm_kernel LANGUAGES CXX CUDA)
33

44
# GPU 架构:缺省支持 A100(80)、Ampere(86)、Ada/L40s/4090(89)、Hopper(90),
55
if(NOT CMAKE_CUDA_ARCHITECTURES)
6-
set(CMAKE_CUDA_ARCHITECTURES 80;86;89;90)
6+
set(CMAKE_CUDA_ARCHITECTURES 80;86;89;90;100;100a;120;120a)
77
endif()
88

99
# 找 PyTorch & Python
@@ -21,7 +21,7 @@ if (NOT TARGET _C)
2121

2222
# C++17 更方便调度宏
2323
target_compile_features(_C PRIVATE cxx_std_17)
24-
target_include_directories(_C PRIVATE
24+
target_include_directories(_C PRIVATE
2525
${TORCH_INCLUDE_DIRS}
2626
${CUDAToolkit_INCLUDE_DIRS}
2727
${PROJECT_SOURCE_DIR}/include
@@ -35,7 +35,7 @@ if (NOT TARGET _C)
3535
CUDA::cudart
3636
CUDA::cuda_driver)
3737

38-
38+
3939
# 输出文件名 _C.so,无前缀
4040
set_target_properties(_C PROPERTIES
4141
PREFIX ""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cmake.minimum-version = "3.22"
5151
cmake.build-type = "Release"
5252
cmake.verbose = true
5353

54-
cmake.args = ["-DCMAKE_CUDA_ARCHITECTURES=80;86;89;90"]
54+
cmake.args = ["-DCMAKE_CUDA_ARCHITECTURES=80;86;89;90;100;100a;120;120a"]
5555

5656
wheel.packages = ["lightllm_kernel"]
5757
wheel.license-files = ["LICENSE"]

0 commit comments

Comments
 (0)