Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing] Fix NVIDIA driver issue on focal, jammy and rl9 #1822

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ setup_repo() {
install_cuda_from_package_manager() {
setup_repo
install_driver_package
sudo yum -y install cuda
# TODO(b/377558109): remove the temporary fix once the repo is updated
sudo yum -y install cuda-toolkit cuda-demo*
verify_driver
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ sudo apt install -y linux-headers-${KERNEL_VERSION} software-properties-common p
# manager's package is not working or not compitible with the GPU model
DISTRIBUTION=$(echo $ID$VERSION_ID | sed -e 's/\.//g')
# Need to add the keyring for installing CUDA and DCGM
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/repos/${DISTRIBUTION}/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/repos/${DISTRIBUTION}/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
echo "Installing latest version of NVIDIA CUDA and driver"
if [[ $ID == debian ]]; then
sudo add-apt-repository contrib
Expand All @@ -34,7 +34,8 @@ case $DEVICE_CODE in
;;
*)
# For newer GPUs, install the latest version
sudo apt -y install cuda
# TODO(b/377558109): remove the temporary fix once the repo is updated
sudo apt -y install cuda-12-6
;;
esac

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ setup_repo() {
install_cuda_from_package_manager() {
setup_repo
install_driver_package
sudo yum -y install cuda
# TODO(b/377558109): remove the temporary fix once the repo is updated
sudo yum -y install cuda-toolkit cuda-demo*
verify_driver
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ sudo apt install -y linux-headers-${KERNEL_VERSION} software-properties-common p
# manager's package is not working or not compitible with the GPU model
DISTRIBUTION=$(echo $ID$VERSION_ID | sed -e 's/\.//g')
# Need to add the keyring for installing CUDA and DCGM
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/repos/${DISTRIBUTION}/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/repos/${DISTRIBUTION}/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
echo "Installing latest version of NVIDIA CUDA and driver"
if [[ $ID == debian ]]; then
sudo add-apt-repository contrib
Expand All @@ -34,7 +34,8 @@ case $DEVICE_CODE in
;;
*)
# For newer GPUs, install the latest version
sudo apt -y install cuda
# TODO(b/377558109): remove the temporary fix once the repo is updated
sudo apt -y install cuda-12-6
;;
esac

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ setup_repo() {
install_cuda_from_package_manager() {
setup_repo
install_driver_package
sudo yum -y install cuda
# TODO(b/377558109): remove the temporary fix once the repo is updated
sudo yum -y install cuda-toolkit cuda-demo*
verify_driver
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ sudo apt install -y linux-headers-${KERNEL_VERSION} software-properties-common p
# manager's package is not working or not compitible with the GPU model
DISTRIBUTION=$(echo $ID$VERSION_ID | sed -e 's/\.//g')
echo "Installing latest version of NVIDIA CUDA and driver"
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/repos/${DISTRIBUTION}/x86_64/cuda-keyring_1.0-1_all.deb
sudo dpkg -i cuda-keyring_1.0-1_all.deb
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/repos/${DISTRIBUTION}/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
if [[ $ID == debian ]]; then
sudo add-apt-repository contrib
fi
Expand All @@ -34,7 +34,8 @@ case $DEVICE_CODE in
;;
*)
# For newer GPUs, install the latest version
sudo apt -y install cuda
# TODO(b/377558109): remove the temporary fix once the repo is updated
sudo apt -y install cuda-12-6
;;
esac

Expand Down
Loading