Skip to content

Instantly share code, notes, and snippets.

@dogukancagatay
Created July 7, 2020 06:34
Show Gist options
  • Save dogukancagatay/8a85a2c7a8ddbe55eb30724b32edaf7a to your computer and use it in GitHub Desktop.
Save dogukancagatay/8a85a2c7a8ddbe55eb30724b32edaf7a to your computer and use it in GitHub Desktop.
Cuda Install Centos 8
dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
dnf install -y cuda
cat <<EOF > /etc/profile.d/cuda.sh 
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment