Difference between revisions of "NVIDIA GPU configuration"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
#* sudo yum install libglvnd-devel | #* sudo yum install libglvnd-devel | ||
# Add cuda bin to path | # Add cuda bin to path | ||
− | + | <pre> | |
cat > /etc/profile.d/cuda.sh <<EOF | cat > /etc/profile.d/cuda.sh <<EOF | ||
# 2019-10-30 Coletta: Add cuda to the path for sh compatible users | # 2019-10-30 Coletta: Add cuda to the path for sh compatible users | ||
Line 24: | Line 24: | ||
EOF | EOF | ||
</pre> | </pre> | ||
+ | # Create file called /etc/ld.so.conf.d/cuda.conf with path "/usr/local/cuda/lib64" inside and run ldconfig as root | ||
+ | # (optional?) Install libglu-devel?? | ||
+ | # Go to the samples directory and try to compile and run 1_Utilities/deviceQuery | ||
+ | # Install nvtop | ||
# Install NVIDIA docker | # Install NVIDIA docker | ||
#* [https://github.com/NVIDIA/nvidia-docker nvidia-docker] | #* [https://github.com/NVIDIA/nvidia-docker nvidia-docker] |
Latest revision as of 19:49, 30 October 2019
Steps
- Download GPU and CUDA drivers
- Versions must match
- GPU driver
- Cuda downloads
- Disable Nouveau
- modprobe configuration files
- Installer creates these files:
- /usr/lib/modprobe.d/nvidia-installer-disable-nouveau.conf
- /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
- Kernel source Tree
yum install kernel-devel
- install kernel source files on CentOS 7
- (Unnecessary) Install pkg-config/X SDK
- libglvnd
- sudo yum install libglvnd-devel
- Add cuda bin to path
cat > /etc/profile.d/cuda.sh <<EOF # 2019-10-30 Coletta: Add cuda to the path for sh compatible users if ! echo $PATH | grep -q /usr/local/cuda/bin ; then export PATH=$PATH:/usr/local/cuda/bin fi EOF
- Create file called /etc/ld.so.conf.d/cuda.conf with path "/usr/local/cuda/lib64" inside and run ldconfig as root
- (optional?) Install libglu-devel??
- Go to the samples directory and try to compile and run 1_Utilities/deviceQuery
- Install nvtop
- Install NVIDIA docker