cos_gpu_installer

command
v0.0.0-...-b3b9084 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

COS GPU installer V2

cos_gpu_installer is a docker containers that can be used to download, compile and install GPU drivers on Container-Optimized OS images.

Usage

cos_gpu_installer should run on COS VM instances. Once you connect to your COS VM, run the following command to start a cos_gpu_installer container:

  /usr/bin/docker run --rm \
    --name="cos-gpu-installer" \
    --privileged \
    --net=host \
    --pid=host \
    --volume /dev:/dev \
    --volume /:/root \
    "gcr.io/cos-cloud/cos-gpu-installer:<tag>" install "-host-dir=/var/lib/nvidia"

To see all available flags, run the following command:

/usr/bin/docker run --rm "gcr.io/cos-cloud/cos-gpu-installer:<tag>" help

Test

Source code

Currently only unittest is available. Use go test to run unittest.

GPU drivers availability

The test test/check_drivers_test.go is available for checking GPU drivers availability. It checks which drivers are available for live COS images. Use test/run_test.sh to run the test.

Documentation

Overview

Package main is the program entrance.

Directories

Path Synopsis
Package deviceinfo provides the devices information for cos-gpu-installer
Package deviceinfo provides the devices information for cos-gpu-installer
internal
commands
Package commands implements subcommands of cos_gpu_installer.
Package commands implements subcommands of cos_gpu_installer.
installer
Package installer provides functionality to install GPU drivers.
Package installer provides functionality to install GPU drivers.
signing
Package signing provides functionality to manage GPU driver signatures for COS.
Package signing provides functionality to manage GPU driver signatures for COS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL