info

package
v1.11.0-rc.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionParts

func GetVersionParts() []string

GetVersionParts returns the different version components

func GetVersionString

func GetVersionString(more ...string) string

GetVersionString returns the string representation of the version

func HasNVML

func HasNVML() (bool, string)

HasNVML returns true if NVML is detected on the sytems

func IsTegraSystem

func IsTegraSystem() (bool, string)

IsTegraSystem returns true if the system is detected as a Tegra-based system

func ResolveAutoMode

func ResolveAutoMode(logger Logger, mode string) (rmode string)

ResolveAutoMode determines the correct mode for the platform if set to "auto"

Types

type Logger

type Logger interface {
	Infof(string, ...interface{})
	Debugf(string, ...interface{})
}

Logger is a basic interface for logging to allow these functions to be called from code where logrus is not used.

Jump to

Keyboard shortcuts

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