gpu

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasNVIDIARuntime

func HasNVIDIARuntime(ctx context.Context, dockerClient client.SystemAPIClient) (bool, error)

HasNVIDIARuntime determines whether there is an nvidia runtime available

Types

type GPUSupport

type GPUSupport uint8

GPUSupport encodes the GPU support available on a Docker engine.

const (
	// GPUSupportNone indicates no detectable GPU support.
	GPUSupportNone GPUSupport = iota
	// GPUSupportCUDA indicates CUDA GPU support.
	GPUSupportCUDA
)

func ProbeGPUSupport

func ProbeGPUSupport(ctx context.Context, dockerClient client.SystemAPIClient) (GPUSupport, error)

ProbeGPUSupport determines whether or not the Docker engine has GPU support.

Jump to

Keyboard shortcuts

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