Skip to content

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LujieDuan committed Oct 6, 2023
1 parent 1df72b2 commit a7f631b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ sudo apt update
kernel_version=`uname -r`
sudo apt install -y linux-headers-${kernel_version} software-properties-common pciutils gcc make dkms wget

# Install CUDA and driver together, since the `exercise` script needs CUDA to compile the application to generating GPU process metrics
# Install CUDA and driver together, since the `exercise` script needs to run a CUDA sample app to generating GPU process metrics
DEVICE_CODE=$(lspci -n | grep -Po '10de:[\w\d]{4}')
case $DEVICE_CODE in
10de:102d)
# Install a specific version for NVIDIA Tesla K80, R470 is the last supported version
DRIVER_VERSION=470.82.01
echo "Installing NVIDIA CUDA 11.2.1 with driver $DRIVER_VERSION"
CUDA_VERSION=11.4.4
echo "Installing NVIDIA CUDA $CUDA_VERSION with driver $DRIVER_VERSION"
curl -fSsl -O https://us.download.nvidia.com/tesla/$DRIVER_VERSION/NVIDIA-Linux-x86_64-$DRIVER_VERSION.run
sudo bash ./NVIDIA-Linux-x86_64-$DRIVER_VERSION.run --silent
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/11.4.4/local_installers/cuda_11.4.4_${DRIVER_VERSION}_linux.run
sudo sh cuda_11.4.4_${DRIVER_VERSION}_linux.run --toolkit --silent
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/$CUDA_VERSION/local_installers/cuda_${CUDA_VERSION}_${DRIVER_VERSION}_linux.run
sudo sh cuda_${CUDA_VERSION}_${DRIVER_VERSION}_linux.run --toolkit --silent
;;
*)
echo "Installing latest version of NVIDIA CUDA and driver"
Expand Down

0 comments on commit a7f631b

Please sign in to comment.