File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "id" : " nvidia-cuda" ,
3- "version" : " 2 .0.0" ,
3+ "version" : " 3 .0.0" ,
44 "name" : " NVIDIA CUDA" ,
55 "description" : " Installs shared libraries for NVIDIA CUDA." ,
66 "documentationURL" : " https://github.com/devcontainers/features/tree/main/src/nvidia-cuda" ,
4242 " 11.3" ,
4343 " 11.2"
4444 ],
45- "default" : " 11.8 " ,
45+ "default" : " 12.5 " ,
4646 "description" : " Version of CUDA to install"
4747 },
4848 "cudnnVersion" : {
Original file line number Diff line number Diff line change 6262# Add NVIDIA's package repository to apt so that we can download packages
6363# Updating the repo to ubuntu2204 as ubuntu 20.04 is going out of support.
6464NVIDIA_REPO_URL=" https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/$NVIDIA_ARCH "
65- KEYRING_PACKAGE=" cuda-keyring_1.0-1_all.deb"
66- KEYRING_PACKAGE_URL=" $NVIDIA_REPO_URL /$KEYRING_PACKAGE "
67- KEYRING_PACKAGE_PATH=" $( mktemp -d) "
68- KEYRING_PACKAGE_FILE=" $KEYRING_PACKAGE_PATH /$KEYRING_PACKAGE "
69- wget -O " $KEYRING_PACKAGE_FILE " " $KEYRING_PACKAGE_URL "
70- apt-get install -yq " $KEYRING_PACKAGE_FILE "
71- apt-get update -yq
65+
66+
67+ if [ " ${ID} " = " debian" ] && [ " ${VERSION_CODENAME} " = " trixie" ]; then
68+ echo " (!) Temporary workaround on debian:trixie: bypassing NVIDIA repo signature checks"
69+ cat > /etc/apt/sources.list.d/cuda.list << EOF
70+ deb [trusted=yes] ${NVIDIA_REPO_URL} / /
71+ EOF
72+
73+ apt-get -o Acquire::AllowInsecureRepositories=true \
74+ -o Acquire::AllowDowngradeToInsecureRepositories=true \
75+ update -yq
76+ else
77+ KEYRING_PACKAGE=" cuda-keyring_1.0-1_all.deb"
78+ KEYRING_PACKAGE_URL=" $NVIDIA_REPO_URL /$KEYRING_PACKAGE "
79+ KEYRING_PACKAGE_PATH=" $( mktemp -d) "
80+ KEYRING_PACKAGE_FILE=" $KEYRING_PACKAGE_PATH /$KEYRING_PACKAGE "
81+ wget -O " $KEYRING_PACKAGE_FILE " " $KEYRING_PACKAGE_URL "
82+ apt-get install -yq " $KEYRING_PACKAGE_FILE "
83+ apt-get update -yq
84+ fi
7285
7386# Ensure that the requested version of CUDA is available
7487cuda_pkg=" cuda-libraries-${CUDA_VERSION/ ./ -} "
Original file line number Diff line number Diff line change 55# Optional: Import test library
66source dev-container-features-test-lib
77
8- # Check installation of libcudnn8
9- check " libcudnn.so.8 " test 1 -eq " $( find /usr -name ' libcudnn.so.8 ' | wc -l) "
8+ # Check installation of libcudnn9
9+ check " libcudnn.so.9 " test 1 -eq " $( find /usr -name ' libcudnn.so.9 ' | wc -l) "
1010
11- # Check installation of libcudnn8 -dev
11+ # Check installation of libcudnn9 -dev
1212check " cudnn.h" test 1 -eq " $( find /usr -name ' cudnn.h' | wc -l) "
1313
14- # Check installation of cuda-nvtx-11 -<version>
15- check " cuda-11 +nvtx" test -e ' /usr/local/cuda-11 /targets/x86_64-linux/include/nvtx3'
14+ # Check installation of cuda-nvtx-12 -<version>
15+ check " cuda-12 +nvtx" test -e ' /usr/local/cuda-12.5 /targets/x86_64-linux/include/nvtx3'
1616
17- # Check installation of cuda-nvcc-11 -<version>
18- check " cuda-11 +nvcc" test -e ' /usr/local/cuda-11 /bin/nvcc'
17+ # Check installation of cuda-nvcc-12 -<version>
18+ check " cuda-12 +nvcc" test -e ' /usr/local/cuda-12.5 /bin/nvcc'
1919
2020# Report result
2121reportResults
22+
Original file line number Diff line number Diff line change 1+ install_all_options.sh
Original file line number Diff line number Diff line change 1+ install_all_options.sh
Original file line number Diff line number Diff line change 1010 }
1111 }
1212 },
13+ "install_all_options_debian_12" : {
14+ "image" : " debian:12" ,
15+ "features" : {
16+ "nvidia-cuda" : {
17+ "installCudnn" : true ,
18+ "installCudnnDev" : true ,
19+ "installNvtx" : true ,
20+ "installToolkit" : true
21+ }
22+ }
23+ },
24+ "install_all_options_ubuntu_noble" : {
25+ "image" : " ubuntu:noble" ,
26+ "features" : {
27+ "nvidia-cuda" : {
28+ "installCudnn" : true ,
29+ "installCudnnDev" : true ,
30+ "installNvtx" : true ,
31+ "installToolkit" : true
32+ }
33+ }
34+ },
1335 "install_cudnn_nvxt_version" : {
1436 "image" : " debian" ,
1537 "features" : {
Original file line number Diff line number Diff line change 55# Optional: Import test library
66source dev-container-features-test-lib
77
8- check " cuda version" test -d /usr/local/cuda-11.8
8+ check " cuda version" test -d /usr/local/cuda-12.5
99
10- # Check installation of cuda-libraries-11 -<version>
11- check " libcudart.so.11.0 " test 1 -eq " $( find /usr -name ' libcudart.so.11.0 ' | wc -l) "
12- check " libcublas.so.11 " test 1 -eq " $( find /usr -name ' libcublas.so.11 ' | wc -l) "
13- check " libcublasLt.so.11 " test 1 -eq " $( find /usr -name ' libcublasLt.so.11 ' | wc -l) "
14- check " libcufft.so.10 " test 1 -eq " $( find /usr -name ' libcufft.so.10 ' | wc -l) "
10+ # Check installation of cuda-libraries-12 -<version>
11+ check " libcudart.so.12 " test 1 -eq " $( find /usr -name ' libcudart.so.12 ' | wc -l) "
12+ check " libcublas.so.12 " test 1 -eq " $( find /usr -name ' libcublas.so.12 ' | wc -l) "
13+ check " libcublasLt.so.12 " test 1 -eq " $( find /usr -name ' libcublasLt.so.12 ' | wc -l) "
14+ check " libcufft.so.11 " test 1 -eq " $( find /usr -name ' libcufft.so.11 ' | wc -l) "
1515check " libcurand.so.10" test 1 -eq " $( find /usr -name ' libcurand.so.10' | wc -l) "
1616check " libcusolver.so.11" test 1 -eq " $( find /usr -name ' libcusolver.so.11' | wc -l) "
17- check " libcusparse.so.11 " test 1 -eq " $( find /usr -name ' libcusparse.so.11 ' | wc -l) "
17+ check " libcusparse.so.12 " test 1 -eq " $( find /usr -name ' libcusparse.so.12 ' | wc -l) "
1818
1919# Report result
2020reportResults
You can’t perform that action at this time.
0 commit comments