Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasNVIDIARuntime ¶
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.
Click to show internal directories.
Click to hide internal directories.