gpuTracker

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHARED_ACCESS accessibility = iota
	EXCLUSIVE_ACCESS
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Initialize GPU Tracker
	Init() error

	// Enable GPU Tracker
	Enable() error

	// Disable GPU Tracker
	Disable() error

	// Reset GPU Tracker
	Reset() error

	// Show GPUs Status
	ShowStatus() error

	// Make specified GPUs exclusive such that they can be used
	// by at most one container at any instance
	MakeGPUsExclusive(gpus string) error

	// Make specified GPUs shared such that they can be used
	// by any number of containers at any instance
	MakeGPUsShared(gpus string) error

	// Reserve GPUs for a container
	ReserveGPUs(gpus string, containerId string) ([]int, error)

	// Release all GPUs linked to a container
	ReleaseGPUs(containerId string) error
}

Interface for GPU Tracker package

func New

func New() (Interface, error)

Jump to

Keyboard shortcuts

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