diff --git a/cuda-11.5.2-0.build.sh b/cuda-11.5.2-0.build.sh index 630d6ca..d155c19 100755 --- a/cuda-11.5.2-0.build.sh +++ b/cuda-11.5.2-0.build.sh @@ -9,6 +9,7 @@ MINOR=2 VERSION=$MAJOR.$MINOR BUILD=0 DRIVERVERSION=495.29.05 +CUDAFILE=cuda_${VERSION}_${DRIVERVERSION}_linux.run CUDNNVER=8.3.3.40 CUDNNFILE=cudnn-linux-x86_64-${CUDNNVER}_cuda$MAJOR-archive.tar.xz @@ -59,25 +60,13 @@ BUILDDIR=$PREFIX/build mkdir -p $BUILDDIR cd $BUILDDIR -### TOOLKIT ### https://developer.nvidia.com/cuda-toolkit -# https://developer.download.nvidia.com/compute/cuda/11.4.0/local_installers/cuda_11.4.0_470.42.01_linux.run -INSTALLFILE=cuda_${VERSION}_${DRIVERVERSION}_linux.run -URL=https://developer.download.nvidia.com/compute/cuda/$VERSION/local_installers/$INSTALLFILE - -# in case it was downloaded before -if [ ! -e $INSTALLFILE -a -e /package/cuda/src/$INSTALLFILE ]; then - cp -vp /package/cuda/src/$INSTALLFILE $INSTALLFILE -fi - -if [ ! -e $INSTALLFILE ]; then - wget $URL -fi +test -e $CUDAFILE || cp -vp /package/cuda/src/$CUDAFILE . # $PREFIX/cuda_tmp_dir: this is owed to the demented cuda installer, which happily fails with # "Unable to write to directory: /pkg", "Permission denied. Unable to write to /pkg/cuda-11.0.3-0/" - what? # OTOH the installer bundles its libraries and includes a bit better than before -bash $INSTALLFILE \ +bash $CUDAFILE \ --installpath=$PREFIX/cuda_tmp_dir \ --tmpdir=$TMPDIR \ --toolkit \