nvidia

package
v0.0.0-...-e5c01c1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish

func Finish()

func GetProcessInfo

func GetProcessInfo() ([]types.PodResourceUsage, error)

func Init

func Init() error

func List

func List() []types.PodResourceUsage

Types

type GPU

type GPU struct {
	DeviceName string
	DeviceUUID string
	MemoryUsed uint64
}

func (GPU) MemoryUsage

func (gpu GPU) MemoryUsage() uint64

func (GPU) Type

func (gpu GPU) Type() string

func (GPU) UUID

func (gpu GPU) UUID() string

type PodResourceUsage

type PodResourceUsage struct {
	Namespace string
	Name      string
	HostName  string
	PodPid    uint32
	GpuMemory *GPU
}

func (PodResourceUsage) GpuMemoryUsed

func (pod PodResourceUsage) GpuMemoryUsed() types.GPU

func (PodResourceUsage) Pid

func (pod PodResourceUsage) Pid() uint32

func (PodResourceUsage) PodHostName

func (pod PodResourceUsage) PodHostName() string

func (PodResourceUsage) PodName

func (pod PodResourceUsage) PodName() string

func (PodResourceUsage) PodNamespace

func (pod PodResourceUsage) PodNamespace() string

Jump to

Keyboard shortcuts

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