types

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VDeviceAnnotation       = "tencent.com/vcuda-device"
	VCoreAnnotation         = "tencent.com/vcuda-core"
	VCoreLimitAnnotation    = "tencent.com/vcuda-core-limit"
	VMemoryAnnotation       = "tencent.com/vcuda-memory"
	PredicateTimeAnnotation = "tencent.com/predicate-time"
	PredicateGPUIndexPrefix = "tencent.com/predicate-gpu-idx-"
	GPUAssigned             = "tencent.com/gpu-assigned"
	ClusterNameAnnotation   = "clusterName"

	VCUDA_MOUNTPOINT = "/etc/vcuda"

	/** 256MB */
	MemoryBlockSize = 268435456

	KubeletSocket                 = "kubelet.sock"
	VDeviceSocket                 = "vcuda.sock"
	CheckPointFileName            = "kubelet_internal_checkpoint"
	PreStartContainerCheckErrMsg  = "PreStartContainer check failed"
	PreStartContainerCheckErrType = "PreStartContainerCheckErr"
	UnexpectedAdmissionErrType    = "UnexpectedAdmissionError"
)
View Source
const (
	NvidiaCtlDevice    = "/dev/nvidiactl"
	NvidiaUVMDevice    = "/dev/nvidia-uvm"
	NvidiaFullpathRE   = `^/dev/nvidia([0-9]*)$`
	NvidiaDevicePrefix = "/dev/nvidia"
)
View Source
const (
	CGROUP_BASE  = "/sys/fs/cgroup/memory"
	CGROUP_PROCS = "cgroup.procs"
)
View Source
const (
	ContainerNameLabelKey = "io.kubernetes.container.name"
	PodNamespaceLabelKey  = "io.kubernetes.pod.namespace"
	PodNameLabelKey       = "io.kubernetes.pod.name"
	PodUIDLabelKey        = "io.kubernetes.pod.uid"
	PodCgroupNamePrefix   = "pod"
)
View Source
const (
	ManagerSocket = "/var/run/gpu-manager.sock"
)

Variables

View Source
var (
	DriverVersionMajor      int
	DriverVersionMinor      int
	DriverLibraryPath       string
	DriverOriginLibraryPath string
)

Functions

This section is empty.

Types

type Checkpoint

type Checkpoint struct {
	PodDeviceEntries  []PodDevicesEntry
	RegisteredDevices map[string][]string
}

type CheckpointData

type CheckpointData struct {
	Data *Checkpoint `json:"Data"`
}

type CheckpointDataNUMA added in v1.1.5

type CheckpointDataNUMA struct {
	Data *CheckpointNUMA `json:"Data"`
}

type CheckpointNUMA added in v1.1.5

type CheckpointNUMA struct {
	PodDeviceEntries  []PodDevicesEntryNUMA
	RegisteredDevices map[string][]string
}

type DevicesPerNUMA added in v1.1.5

type DevicesPerNUMA map[int64][]string

type PodDevicesEntry

type PodDevicesEntry struct {
	PodUID        string
	ContainerName string
	ResourceName  string
	DeviceIDs     []string
	AllocResp     []byte
}

type PodDevicesEntryNUMA added in v1.1.5

type PodDevicesEntryNUMA struct {
	PodUID        string
	ContainerName string
	ResourceName  string
	DeviceIDs     DevicesPerNUMA
	AllocResp     []byte
}

type VCudaRequest

type VCudaRequest struct {
	PodUID string
	//Deprecated
	ContainerName string
	//Deprecated
	Cores int64
	//Deprecated
	Memory int64
	Done   chan error
}

Jump to

Keyboard shortcuts

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