From b1f9d5be8f50251586d362f0382cf9cd91a32ef6 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Mon, 6 Feb 2023 23:26:05 +0100 Subject: [PATCH 1/3] Update to CUDA 11.8.0 and NVIDIA drivers 520.61.05 The main change since CUDA 11.5.x is the support for the Lovelace (sm_87) and Hopper (sm_90) architectures. See https://docs.nvidia.com/cuda/archive/11.8.0/cuda-toolkit-release-notes/index.html for the full CUDA 11.8.0 release notes and change log. --- cuda.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cuda.spec b/cuda.spec index a0ebacb4b02..a16ff58e51e 100644 --- a/cuda.spec +++ b/cuda.spec @@ -1,8 +1,8 @@ -### RPM external cuda 11.5.2 +### RPM external cuda 11.8.0 ## INITENV +PATH LD_LIBRARY_PATH %i/lib64 %define runpath_opts -m compute-sanitizer -m drivers -m nvvm -%define driversversion 495.29.05 +%define driversversion 520.61.05 %ifarch x86_64 Source0: https://developer.download.nvidia.com/compute/cuda/%{realversion}/local_installers/%{n}_%{realversion}_%{driversversion}_linux.run @@ -96,12 +96,15 @@ mkdir -p %{i}/drivers mv %_builddir/build/drivers/libcuda.so.%{driversversion} %{i}/drivers/ ln -sf libcuda.so.%{driversversion} %{i}/drivers/libcuda.so.1 ln -sf libcuda.so.1 %{i}/drivers/libcuda.so +mv %_builddir/build/drivers/libcudadebugger.so.%{driversversion} %{i}/drivers/ +ln -sf libcudadebugger.so.%{driversversion} %{i}/drivers/libcudadebugger.so.1 +ln -sf libcudadebugger.so.1 %{i}/drivers/libcudadebugger.so mv %_builddir/build/drivers/libnvidia-ptxjitcompiler.so.%{driversversion} %{i}/drivers/ ln -sf libnvidia-ptxjitcompiler.so.%{driversversion} %{i}/drivers/libnvidia-ptxjitcompiler.so.1 ln -sf libnvidia-ptxjitcompiler.so.1 %{i}/drivers/libnvidia-ptxjitcompiler.so -cp %{i}/nvvm/lib64/libnvvm.so.4.0.0 %{i}/drivers/ -ln -sf libnvvm.so.4.0.0 %{i}/drivers/libnvvm.so.4 -ln -sf libnvvm.so.4 %{i}/drivers/libnvvm.so +mv %_builddir/build/drivers/libnvidia-nvvm.so.%{driversversion} %{i}/drivers/ +ln -sf libnvidia-nvvm.so.%{driversversion} %{i}/drivers/libnvidia-nvvm.so.4 +ln -sf libnvidia-nvvm.so.4 %{i}/drivers/libnvidia-nvvm.so %post # let nvcc find its components when invoked from the command line From a6a022292e37f0f05e60e80f8608ba2082fff6e3 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Wed, 18 Jan 2023 14:24:08 +0100 Subject: [PATCH 2/3] Update cuDNN to version 8.7.0.84 for CUDA 11.8 --- cudnn.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cudnn.spec b/cudnn.spec index 35bdc5c419b..e9bc90d058e 100644 --- a/cudnn.spec +++ b/cudnn.spec @@ -1,7 +1,7 @@ -### RPM external cudnn 8.3.3.40 +### RPM external cudnn 8.7.0.84 ## INITENV +PATH LD_LIBRARY_PATH %i/lib64 -%define cudaver 11.5 +%define cudaver 11.8 %define cudnnver_maj %(echo %{realversion} | cut -f1,2,3 -d.) # NVIDIA uses sbsa for aarch64, and the standard architecture name for ppc64le and x86_64 @@ -12,7 +12,7 @@ %endif # cuDNN archive base name and unpacked name -%define archive cudnn-linux-%{nvarch}-%{realversion}_cuda%{cudaver}-archive +%define archive cudnn-linux-%{nvarch}-%{realversion}_cuda11-archive Source: https://developer.download.nvidia.com/compute/redist/cudnn/v%{cudnnver_maj}/local_installers/%{cudaver}/%{archive}.tar.xz Requires: cuda @@ -20,10 +20,10 @@ Requires: cuda %prep %setup -n %{archive} -if [ "${CUDA_VERSION%.*}" != %{cudaver} ]; then - echo 'Incompatible CUDA version in cudnn.spec!' - exit 1 -fi +#if [ "${CUDA_VERSION%.*}" != %{cudaver} ]; then +# echo 'Incompatible CUDA version in cudnn.spec!' +# exit 1 +#fi %build From 565921d5814b8ee8f60865977a5c69392dcb376d Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Fri, 20 Jan 2023 16:52:44 +0100 Subject: [PATCH 3/3] Update PyCUDA to 2022.2.2 --- pip/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pip/requirements.txt b/pip/requirements.txt index 007c6b4776c..7a64fc54d04 100644 --- a/pip/requirements.txt +++ b/pip/requirements.txt @@ -226,7 +226,7 @@ pybind11==2.10.0 pybrain==0.3.3 pycodestyle==2.9.1 pycparser==2.21 -pycuda==2022.1 +pycuda==2022.2.2 pycurl==7.45.1 pydot==1.4.2 pyflakes==2.5.0