File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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),
55if (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 )
77endif ()
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 ""
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ cmake.minimum-version = "3.22"
5151cmake.build-type = " Release"
5252cmake.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
5656wheel.packages = [" lightllm_kernel" ]
5757wheel.license-files = [" LICENSE" ]
You can’t perform that action at this time.
0 commit comments