Skip to content

Commit

Permalink
cuda-11.5.2: use /package/cuda/src for all packages
Browse files Browse the repository at this point in the history
cuda-XY_linux.run is the only package that can be downloaded w/o
a developer account. For the sake of consistency this option is
dropped.
  • Loading branch information
thomas committed Jun 2, 2022
1 parent 44e8678 commit aa30856
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions cuda-11.5.2-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit aa30856

Please sign in to comment.