system

package
v1.1.6-dev2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPU added in v1.0.4

type GPU struct {
	// Self-reported index of the device in the system
	Index uint64
	// Model name of the GPU e.g. Tesla T4
	Name string
	// Total GPU memory in mebibytes (MiB)
	Memory uint64
}

func GetSystemGPUs added in v1.0.4

func GetSystemGPUs() ([]GPU, error)

type PhysicalCapacityProvider

type PhysicalCapacityProvider struct {
}

func NewPhysicalCapacityProvider

func NewPhysicalCapacityProvider() *PhysicalCapacityProvider

func (*PhysicalCapacityProvider) GetAvailableCapacity

func (p *PhysicalCapacityProvider) GetAvailableCapacity(ctx context.Context) (models.Resources, error)

Jump to

Keyboard shortcuts

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