utils

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 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.

Directories

Path Synopsis
runner
from: https://github.com/lgarithm/go/blob/master/net/ssh/ssh.go Package ssh is a simple wrapper for golang.org/x/crypto/ssh
from: https://github.com/lgarithm/go/blob/master/net/ssh/ssh.go Package ssh is a simple wrapper for golang.org/x/crypto/ssh

Jump to

Keyboard shortcuts

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