nvidia

package
Version: v0.0.0-...-f54b414 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNvidiaGPUManager

func NewNvidiaGPUManager(devDirectory, procDirectory string, mountPaths []pluginapi.Mount, gpuConfig GPUConfig) *nvidiaGPUManager

func RegisterWithV1Beta1Kubelet

func RegisterWithV1Beta1Kubelet(kubeletEndpoint, pluginEndpoint, resourceName string) error

TODO: remove this function once we move to probe based registration.

Types

type GPUConfig

type GPUConfig struct {
	GPUPartitionSize string
	// MaxTimeSharedClientsPerGPU is the number of the time-shared GPU resources to expose for each physical GPU.
	// Deprecated in favor of GPUSharingConfig.
	MaxTimeSharedClientsPerGPU int
	// GPUSharingConfig informs how GPUs on this node can be shared between containers.
	GPUSharingConfig GPUSharingConfig
}

GPUConfig stores the settings used to configure the GPUs on a node.

func (*GPUConfig) AddDefaultsAndValidate

func (config *GPUConfig) AddDefaultsAndValidate() error

type GPUSharingConfig

type GPUSharingConfig struct {
	// GPUSharingStrategy is the type of sharing strategy to enable on this node. Values are "time-sharing" or "mps".
	GPUSharingStrategy GPUSharingStrategy
	// MaxSharedClientsPerGPU is the maximum number of clients that are allowed to share a single GPU.
	MaxSharedClientsPerGPU int
}

type GPUSharingStrategy

type GPUSharingStrategy string
const (
	Undefined   GPUSharingStrategy = ""
	TimeSharing GPUSharingStrategy = "time-sharing"
	MPS         GPUSharingStrategy = "mps"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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