Skip to content

Commit

Permalink
Add script that correctly handles driver installation on Rocky Linux 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Jan 5, 2024
1 parent 5a54cdc commit e7a4ccf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
5 changes: 1 addition & 4 deletions ci/build_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ export CMAKE_GENERATOR=Ninja
rapids-print-env

rapids-logger "Install CUDA Toolkit"
yum update
yum install -y epel-release
yum install -y nvidia-driver-latest-dkms
yum install -y cuda-toolkit-12-3
source "$(dirname "$0")/install_latest_cuda_toolkit.sh"

rapids-logger "Begin py build"

Expand Down
5 changes: 1 addition & 4 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@


rapids-logger "Install CUDA Toolkit"
yum update
yum install -y epel-release
yum install -y nvidia-driver-latest-dkms
yum install -y cuda-toolkit-12-3
source "$(dirname "$0")/install_latest_cuda_toolkit.sh"

rapids-logger "Check conda environment"
conda list
Expand Down
20 changes: 20 additions & 0 deletions ci/install_latest_cuda_toolkit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION

# Installs the latest CUDA Toolkit.
# Supports CentOS 7 and Rocky Linux 8.

yum update
yum install -y epel-release

OS_ID=$(. /etc/os-release; echo $ID)
if [ "${OS_ID}" == "centos" ]; then
yum install -y nvidia-driver-latest-dkms
elif [ "${OS_ID}" == "rocky" ]; then
yum install -y nvidia-driver
else
echo "Error: OS not detected as CentOS or Rocky Linux. Exiting."
exit 1
fi

yum install -y cuda-toolkit-12-3

0 comments on commit e7a4ccf

Please sign in to comment.