Commit bb71c25 1 parent d968984 commit bb71c25 Copy full SHA for bb71c25
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,14 @@ echo "Installing NVIDIA ${NVIDIA_DRIVER_MAJOR_VERSION} drivers..."
12
12
# ###############################################################################
13
13
# ## Add repository #############################################################
14
14
# ###############################################################################
15
- sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/amzn2023/x86_64/cuda-amzn2023.repo
15
+ # Determine the domain based on the region
16
+ if [[ $AWS_REGION == cn-* ]]; then
17
+ DOMAIN=" nvidia.cn"
18
+ else
19
+ DOMAIN=" nvidia.com"
20
+ fi
21
+
22
+ sudo dnf config-manager --add-repo https://developer.download.${DOMAIN} /compute/cuda/repos/amzn2023/x86_64/cuda-amzn2023.repo
16
23
sudo dnf config-manager --add-repo https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo
17
24
18
25
sudo sed -i ' s/gpgcheck=0/gpgcheck=1/g' /etc/yum.repos.d/nvidia-container-toolkit.repo /etc/yum.repos.d/cuda-amzn2023.repo
Original file line number Diff line number Diff line change 20
20
"kms_key_id" : " " ,
21
21
"launch_block_device_mappings_volume_size" : " 20" ,
22
22
"nodeadm_build_image" : " public.ecr.aws/eks-distro-build-tooling/golang:1.23" ,
23
- "nvidia_driver_major_version" : " 555 " ,
23
+ "nvidia_driver_major_version" : " 560 " ,
24
24
"remote_folder" : " /tmp" ,
25
25
"runc_version" : " *" ,
26
26
"security_group_id" : " " ,
You can’t perform that action at this time.
0 commit comments