Skip to content

CUDA Installer tool v1.2.0

Latest
Compare
Choose a tag to compare
@m-strzelczyk m-strzelczyk released this 17 Dec 16:53
c74ffc5

Changes

Updated to 560.35.03 driver and 12.6.3 CUDA Toolkit versions.

Requirements

The system on which you want to run the script needs to meet the following
requirements:

  • Python interpreter in version 3.6 or newer installed.
  • Access to Internet (the script needs to download the driver and CUDA toolkit).
  • At least one GPU unit attached.

Running the tool

The cuda_installer.pyz script needs to be executed with root privileges
(for example sudo python3 cuda_installer.pyz).

Note: During the installation the script will trigger system reboots. After a
reboot, the script needs to be started again to continue the installation process.

After successfully installation, the tool will restart your system once more to make
sure everything is initialized properly and working system-wide.

You can use the following script as a startup script for your instance, to make the installation automatic:

#!/bin/bash
if test -f /opt/google/cuda-installer
then
  exit
fi

mkdir -p /opt/google/cuda-installer/
cd /opt/google/cuda-installer/ || exit

curl -fSsL -O https://github.com/GoogleCloudPlatform/compute-gpu-installation/releases/download/cuda-installer-v1.2.0/cuda_installer.pyz
python3 cuda_installer.pyz install_cuda