Skip to content

Commit 2c04b1b

Browse files
authored
Support CUDA 12.9 (#600)
1 parent 9650e5c commit 2c04b1b

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": {
44
"dockerfile": "Dockerfile",
55
"args": {
6-
"BASE_IMAGE": "ghcr.io/microsoft/mscclpp/mscclpp:base-dev-cuda12.8",
6+
"BASE_IMAGE": "ghcr.io/microsoft/mscclpp/mscclpp:base-dev-cuda12.9",
77
"USERNAME": "devuser",
88
"SSH_PORT": "22345"
99
}
@@ -31,10 +31,8 @@
3131
"/usr/local/cuda/include",
3232
"/usr/include"
3333
],
34-
"C_Cpp.default.compilerPath": "/usr/bin/gcc",
3534
"C_Cpp.default.cStandard": "c17",
36-
"C_Cpp.default.cppStandard": "c++17",
37-
"C_Cpp.default.intelliSenseMode": "linux-gcc-x64"
35+
"C_Cpp.default.cppStandard": "c++17"
3836
}
3937
}
4038
},

.devcontainer/devcontainer_amd.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@
3131
"/opt/rocm/include",
3232
"/usr/include"
3333
],
34-
"C_Cpp.default.compilerPath": "/usr/bin/gcc",
3534
"C_Cpp.default.cStandard": "c17",
36-
"C_Cpp.default.cppStandard": "c++17",
37-
"C_Cpp.default.intelliSenseMode": "linux-gcc-x64"
35+
"C_Cpp.default.cppStandard": "c++17"
3836
}
3937
}
4038
},

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ elseif(MSCCLPP_USE_CUDA)
8787
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "12.8")
8888
list(APPEND MSCCLPP_GPU_ARCHS 100)
8989
endif()
90+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL "12.9")
91+
list(APPEND MSCCLPP_GPU_ARCHS 120)
92+
endif()
9093
elseif(MSCCLPP_USE_ROCM)
9194
set(CMAKE_HIP_ARCHITECTURES gfx90a gfx941 gfx942)
9295
endif()

docker/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ baseImageTable=(
1010
["cuda12.3"]="nvidia/cuda:12.3.2-devel-ubuntu20.04"
1111
["cuda12.4"]="nvidia/cuda:12.4.1-devel-ubuntu22.04"
1212
["cuda12.8"]="nvidia/cuda:12.8.1-devel-ubuntu22.04"
13+
["cuda12.9"]="nvidia/cuda:12.9.1-devel-ubuntu22.04"
1314
["rocm6.2"]="rocm/rocm-terminal:6.2.1"
1415
)
1516

@@ -25,13 +26,14 @@ declare -A ofedVersionTable
2526
ofedVersionTable=(
2627
["cuda12.4"]="23.07-0.5.1.2"
2728
["cuda12.8"]="24.10-1.1.4.0"
29+
["cuda12.9"]="24.10-1.1.4.0"
2830
)
2931

3032
GHCR="ghcr.io/microsoft/mscclpp/mscclpp"
3133
TARGET=${1}
3234

3335
print_usage() {
34-
echo "Usage: $0 [cuda11.8|cuda12.1|cuda12.2|cuda12.3|cuda12.4|cuda12.8|rocm6.2]"
36+
echo "Usage: $0 [cuda11.8|cuda12.1|cuda12.2|cuda12.3|cuda12.4|cuda12.8|cuda12.9|rocm6.2]"
3537
}
3638

3739
if [[ ! -v "baseImageTable[${TARGET}]" ]]; then

0 commit comments

Comments
 (0)