util

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 9 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 IsNVMLVersionSupported added in v0.1.3

func IsNVMLVersionSupported() (bool, error)

func IsNvidiaModuleLoaded

func IsNvidiaModuleLoaded() (bool, error)

func NewMigConfigManager added in v0.1.3

func NewMigConfigManager() (config.Manager, error)

func NewMigModeManager added in v0.1.3

func NewMigModeManager() (mode.Manager, error)

func NvidiaSmiReset

func NvidiaSmiReset(gpus ...string) (string, error)

func NvmlInit added in v0.4.1

func NvmlInit(nvmlLib nvml.Interface) error

func TryNvmlShutdown added in v0.4.1

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