util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(set []bool) bool

func Capitalize

func Capitalize(s string) string

func CountTrue

func CountTrue(set []bool) int

func GetGPUDeviceIDs

func GetGPUDeviceIDs() ([]types.DeviceID, error)

func IsNVMLVersionSupported

func IsNVMLVersionSupported() (bool, error)

func IsNvidiaModuleLoaded

func IsNvidiaModuleLoaded() (bool, error)

func NewMigConfigManager

func NewMigConfigManager() (config.Manager, error)

func NewMigModeManager

func NewMigModeManager() (mode.Manager, error)

func NvmlInit

func NvmlInit(nvmlLib nvml.Interface) error

func ResetAllGPUs

func ResetAllGPUs() (string, error)

func TryNvmlShutdown

func TryNvmlShutdown(nvmlLib nvml.Interface)

Types

This section is empty.

Jump to

Keyboard shortcuts

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