env

package
v0.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConfigServerEnvKey       = `KUNGFU_CONFIG_SERVER`
	InitClusterVersionEnvKey = `KUNGFU_INIT_CLUSTER_VERSION`
	ParentIDEnvKey           = `KUNGFU_PARENT_ID`

	PeerListEnvKey          = `KUNGFU_INIT_PEERS`
	RunnerListEnvKey        = `KUNGFU_INIT_RUNNERS`
	SelfSpecEnvKey          = `KUNGFU_SELF_SPEC` // self spec should never change during the life of a process
	AllReduceStrategyEnvKey = `KUNGFU_ALLREDUCE_STRATEGY`

	JobStartTimestamp  = `KUNGFU_JOB_START_TIMESTAMP`
	ProcStartTimestamp = `KUNGFU_PROC_START_TIMESTAMP`

	AllowNvLink = `KUNGFU_ALLOW_NVLINK`
)

Internal environment variables set by kungfu-run, users should not set them.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigServer string
	Parent       plan.PeerID
	InitRunners  plan.PeerList
	Self         plan.PeerID
	Strategy     kb.Strategy

	InitClusterVersion string
	InitPeers          plan.PeerList

	Single bool
}

func ParseConfigFromEnv

func ParseConfigFromEnv() (*Config, error)

func SingleMachineEnv added in v0.2.4

func SingleMachineEnv(rank, size int) (*Config, error)

Jump to

Keyboard shortcuts

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