You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This installation is for:

Fedora 33
cuda toolkit 11.4
cuDNN 8
root 24.00

Pre-installation

  • Verify the system has a CUDA-capable GPU.
  • Verify the system is running a supported version of Linux.
  • Verify the system has gcc installed.
  • Verify the system has the correct kernel headers and development packages installed.
  • Download the NVIDIA CUDA Toolkit.
  • Handle conflicting installation methods.

cuda toolkit:

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html
First:
dnf install gcc-c++ mesa-libGLU-devel libX11-devel libXi-devel libXmu-devel dnf install freeglut freeglut-devel

Get cuda toolkit:
wget https://developer.download.nvidia.com/compute/cuda/11.4.0/local_installers/cuda-repo-fedora33-11-4-local-11.4.0_470.42.01-1.x86_64.rpm
sudo rpm -i cuda-repo-fedora33-11-4-local-11.4.0_470.42.01-1.x86_64.rpm
sudo dnf clean all
sudo dnf -y module install nvidia-driver:latest-dkms
sudo dnf -y install cuda


After installation

cat << EOF > /etc/profile.d/cuda.sh
pathmunge /usr/local/cuda-11.1/bin before

if [ -z "${LD_LIBRARY_PATH}" ]; then
    LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64
else
    LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64:$LD_LIBRARY_PATH
fi

export PATH LD_LIBRARY_PATH
EOF



After installation (check all is well):

cd /(insallation location)/NVIDIA_CUDA-11.4_Samples/5_Simulations/nbody

make

./nbody

if you see the simulation all is working with cuda toolkit




Installation of cuDNN libraries:


need:
[

sudo cp cuda/include/cudnn*.h /usr/local/cuda/include sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64 sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*


cmake -DCMAKE_INSTALL_PREFIX=/home/ptgroup/root_install/ -DCMAKE_CXX_STANDARD=14 -Dminuit2=ON -Dvmc=ON -Dcuda=ON -Dcudnn=ON -Dtmva-gpu=ON -Dtmva-cpu=ON  /home/ptgroup/root_src/


https://docs.nvidia.com/cuda/cuda-quick-start-guide/index.html

https://www.if-not-true-then-false.com/2018/install-nvidia-cuda-toolkit-on-fedora/


  • No labels