@@ -11,14 +11,20 @@ if [[ -v cuda_targets ]]; then
1111elif [ " ${build_arch} " = " aarch64" ]; then
1212 build_capability=" 75;80;90"
1313
14- # CUDA 12.8: Add sm100
15- [[ " ${cuda_version} " == 12.8.* ]] && build_capability=" 75;80;90;100"
14+ # CUDA 12.8-12.9: Add sm100/sm120
15+ [[ " ${cuda_version} " == 12.8.* || " ${cuda_version} " == 12.9.* ]] && build_capability=" 75;80;90;100;120"
16+
17+ # CUDA 13.0+: Add sm100/sm110/sm120
18+ [[ " ${cuda_version} " == 13.* .* ]] && build_capability=" 75;80;90;100;110;120;121"
1619else
17- # By default, target Maxwell through Hopper.
18- build_capability=" 50;52;60;61;70;75;80;86;89;90"
20+ # By default, target Pascal through Hopper.
21+ build_capability=" 60;70;75;80;86;89;90"
22+
23+ # CUDA 12.8+: Add sm100 and sm120; remove < sm70 to align with PyTorch 2.8+cu128 minimum
24+ [[ " ${cuda_version} " == 12.8.* || " ${cuda_version} " == 12.9.* ]] && build_capability=" 70;75;80;86;89;90;100;120"
1925
20- # CUDA 12.8: Add sm100 and sm120; remove < sm75 to align with PyTorch 2.7+cu128 minimum
21- [[ " ${cuda_version} " == 12.8 .* ]] && build_capability=" 75;80;86;89;90;100;120"
26+ # CUDA 13.0+: Remove < sm75 to align with PyTorch 2.9+cu130 minimum
27+ [[ " ${cuda_version} " == 13. * .* ]] && build_capability=" 75;80;86;89;90;100;120"
2228fi
2329
2430[[ " ${build_os} " = windows-* ]] && python3 -m pip install ninja
@@ -29,8 +35,8 @@ if [ "${build_os:0:6}" == ubuntu ]; then
2935 echo " Using image $image "
3036
3137 docker run -i -w /src -v " $PWD :/src" " $image " bash -c \
32- " dnf update -y \
33- && dnf install cmake gcc-toolset-11 -y \
38+ " dnf -y --refresh update --security \
39+ && dnf -y install cmake gcc-toolset-11 --setopt=install_weak_deps=False --setopt=tsflags=nodocs \
3440 && source scl_source enable gcc-toolset-11 \
3541 && cmake -DCOMPUTE_BACKEND=cuda -DCOMPUTE_CAPABILITY=\" ${build_capability} \" . \
3642 && cmake --build . --config Release"
0 commit comments