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 PodDevicesEntry ¶
type PodDevicesEntryNUMA ¶ added in v1.1.5
type PodDevicesEntryNUMA struct { PodUID string ContainerName string ResourceName string DeviceIDs DevicesPerNUMA AllocResp []byte }
Click to show internal directories.
Click to hide internal directories.