mpi

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MPIPluginName is the name of the plugin
	MPIPluginName = "mpi"
	// DefaultPort is the default port for ssh
	DefaultPort = 22
	// DefaultMaster is the default task name of master host
	DefaultMaster = "master"
	// DefaultWorker is the default task name of worker host
	DefaultWorker = "worker"
	// MPIHost is the environment variable key of MPI host
	MPIHost = "MPI_HOST"
)

Variables

This section is empty.

Functions

func New

New creates mpi plugin.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(arguments []string) Plugin

func (*Plugin) GetMasterName

func (mp *Plugin) GetMasterName() string

func (*Plugin) GetMpiArguments

func (mp *Plugin) GetMpiArguments() []string

func (*Plugin) GetWorkerName

func (mp *Plugin) GetWorkerName() string

func (*Plugin) Name

func (mp *Plugin) Name() string

func (*Plugin) OnJobAdd

func (mp *Plugin) OnJobAdd(job *batch.Job) error

func (*Plugin) OnJobDelete

func (mp *Plugin) OnJobDelete(job *batch.Job) error

func (*Plugin) OnJobUpdate

func (mp *Plugin) OnJobUpdate(job *batch.Job) error

func (*Plugin) OnPodCreate

func (mp *Plugin) OnPodCreate(pod *v1.Pod, job *batch.Job) error

Jump to

Keyboard shortcuts

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