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] GPU tests: remove deprecated CentOS 7 setup logic in the testing scripts #1824

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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 @@ -89,36 +89,15 @@ try_install() {
return 1
}

handle_rhel7() {
install_driver_package() {
# Ref: https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#centos7
# For Centos - we can expect the repo to have the matching version of
# kernel packages, and the driver package needs those kernel packages
sudo yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo yum -y install nvidia-driver-latest-dkms
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y remove "*nvidia*"
}
install_driver_package() {
# Ref: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=x86_64&Distribution=RHEL&target_version=8&target_type=rpm_network
sudo yum -y module install nvidia-driver
}

handle_common() {
install_driver_package() {
# Ref: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=x86_64&Distribution=RHEL&target_version=8&target_type=rpm_network
sudo yum -y module install nvidia-driver
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y module remove --all nvidia-driver
}
remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y module remove --all nvidia-driver
}

case "$VERSION_ID" in
7) handle_rhel7;;
*) handle_common;;
esac
try_install install_cuda_from_package_manager install_cuda_from_runfile
install_dcgm
Original file line number Diff line number Diff line change
Expand Up @@ -89,36 +89,15 @@ try_install() {
return 1
}

handle_rhel7() {
install_driver_package() {
# Ref: https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#centos7
# For Centos - we can expect the repo to have the matching version of
# kernel packages, and the driver package needs those kernel packages
sudo yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo yum -y install nvidia-driver-latest-dkms
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y remove "*nvidia*"
}
install_driver_package() {
# Ref: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=x86_64&Distribution=RHEL&target_version=8&target_type=rpm_network
sudo yum -y module install nvidia-driver
}

handle_common() {
install_driver_package() {
# Ref: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=x86_64&Distribution=RHEL&target_version=8&target_type=rpm_network
sudo yum -y module install nvidia-driver
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y module remove --all nvidia-driver
}
remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y module remove --all nvidia-driver
}

case "$VERSION_ID" in
7) handle_rhel7;;
*) handle_common;;
esac
try_install install_cuda_from_package_manager install_cuda_from_runfile
install_dcgm
Original file line number Diff line number Diff line change
Expand Up @@ -79,36 +79,14 @@ try_install() {
return 1
}

handle_rhel7() {
install_driver_package() {
# Ref: https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#centos7
# For Centos - we can expect the repo to have the matching version of
# kernel packages, and the driver package needs those kernel packages
sudo yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r)
sudo yum -y install nvidia-driver-latest-dkms
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y remove "*nvidia*"
}
install_driver_package() {
# Ref: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=x86_64&Distribution=RHEL&target_version=8&target_type=rpm_network
sudo yum -y module install nvidia-driver
}

handle_common() {
install_driver_package() {
# Ref: https://developer.nvidia.com/cuda-12-2-2-download-archive?target_os=Linux&target_arch=x86_64&Distribution=RHEL&target_version=8&target_type=rpm_network
sudo yum -y module install nvidia-driver
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y module remove --all nvidia-driver
}

remove_driver_package() {
# Ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-toolkit-and-driver
sudo yum -y module remove --all nvidia-driver
}

case "$VERSION_ID" in
7) handle_rhel7;;
*) handle_common;;
esac
try_install install_cuda_from_package_manager install_cuda_from_runfile
Loading