Skip to content

Releases: GoogleCloudPlatform/compute-gpu-installation

CUDA Installer tool v1.2.0

17 Dec 16:53
c74ffc5
Compare
Choose a tag to compare

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

CUDA Installer tool v1.1.0

15 Jun 12:40
cuda-installer-v1.1.0
fb6dc2a
Compare
Choose a tag to compare

Changes

A security issue with NVIDIA drivers forced us to decouple the driver and toolkit installation, so we can install a secure driver.

The driver version installed now is 550.90.07 and CUDA Toolkit version is 12.5.0.

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.1.0/cuda_installer.pyz
python3 cuda_installer.pyz install_cuda

CUDA Installer tool v1.0.0

20 May 13:27
cuda-installer-v1.0.0
a800bd5
Compare
Choose a tag to compare

CUDA Installer

Releasing new approach to automating installation of the NVIDIA GPU drivers and CUDA Toolkit to Google Cloud Compute Engine instances.

Supported operating systems:

  • Debian: versions 10, 11 and 12
  • RHEL: versions 8 and 9
  • Rocky: version 8 and 9
  • Ubuntu: version 20, 22 and 24

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.0.0/cuda_installer.pyz
python3 cuda_installer.pyz install_cuda