utils

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesEq added in v0.2.0

func BytesEq(x, y []byte) bool

func ExitErr

func ExitErr(err error)

func ListNvidiaGPUNames

func ListNvidiaGPUNames() []string

func LogAllEnvs

func LogAllEnvs()

func LogArgs

func LogArgs()

func LogCudaEnv

func LogCudaEnv()

func LogEnvWithPrefix

func LogEnvWithPrefix(prefix string, logPrefix string)

func LogKungfuEnv

func LogKungfuEnv()

func LogNCCLEnv

func LogNCCLEnv()

func LogNICInfo

func LogNICInfo() error

func Measure

func Measure(f func() error) (time.Duration, error)

func Pluralize

func Pluralize(n int, singular, plural string) string

func ProgName

func ProgName() string

func Rate

func Rate(n int64, d time.Duration) float64

func ShowRate

func ShowRate(r float64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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