#! /bin/bash # Installation of cuda-9.0 requied by cudnn-10.0-linux-x64-v7.3.1.20.solitairetheme8 (tensorflow-gpu) in centos 7 # Assumed cuda of a higher version (e.g., 9.2 or 10.1) has already been installed. # Run this script as su # Require manual intervention # Assumed the following local run files of cuda-9.0 are already in /share/apps/configrepo # cuda_9.0.176_384.81_linux-run # cuda_9.0.176.1_linux-run # cuda_9.0.176.2_linux-run # cuda_9.0.176.3_linux-run # cuda_9.0.176.4_linux-run # the above are available at #wget https://developer.nvidia.com/cuda-90-download-archive?target_os=Linux&target_arch=x86_64&target_distro=CentOS&target_version=7&target_type=runfilelocal #wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_9.0.176_384.81_linux-run #wget https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/1/cuda_9.0.176.1_linux-run #wget https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/2/cuda_9.0.176.2_linux-run #wget https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/2/cuda_9.0.176.3_linux-run #wget https://developer.nvidia.com/compute/cuda/9.0/Prod/patches/2/cuda_9.0.176.4_linux-run cd /share/apps/configrepo ./cuda_9.0.176_384.81_linux-run #Choose not to install graphic driver #Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81? #(y)es/(n)o/(q)uit: n #Choose yes to install CUDA Toolkit #Install the CUDA 9.0 Toolkit? #(y)es/(n)o/(q)uit: Install the CUDA 9.0 Toolkit? y #Choose not to creat a symbolic link #Do you want to install a symbolic link at /usr/local/cuda? #(y)es/(n)o/(q)uit: n ./cuda_9.0.176.1_linux-run ./cuda_9.0.176.2_linux-run ./cuda_9.0.176.3_linux-run ./cuda_9.0.176.4_linux-run #done.