job

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanUpFn

type CleanUpFn func(...interface{}) error

CleanUpFn is a "function pointer" to call to clean up the system after the completion of a job

type GetErrorFn

type GetErrorFn func(*Job, *sys.Config) string

GetErrorFn is a "function pointer" to call to gather stderr from an application after completion of a job

type GetOutputFn

type GetOutputFn func(*Job, *sys.Config) string

GetOutputFn is a "function pointer" to call to gather the output of an application after completion of a job

type Job

type Job struct {
	// NP is the number of ranks
	NP int

	// NNodes is the number of nodes
	NNodes int

	// CleanUp is the function to call once the job is completed to clean the system
	CleanUp CleanUpFn

	// BatchScript is the path to the script required to start a job (optional)
	BatchScript string

	// HostCfg is the MPI configuration to use on the host
	HostCfg *implem.Info

	// ContainerCfg is the MPI configuration to use in the container
	Container *container.Config

	// App is the path to the application's binary, i.e., the binary to start
	App app.Info

	// OutBuffer is a buffer with the output of the job
	OutBuffer bytes.Buffer

	// ErrBuffer is a buffer with the stderr of the job
	ErrBuffer bytes.Buffer

	// GetOutput is the function to call to gather the output of the application based on the use of a given job manager
	GetOutput GetOutputFn

	// GetError is the function to call to gather stderr of the application based on the use of a given job manager
	GetError GetErrorFn

	// Args is a set of arguments to be used for launching the job
	Args []string
}

Job represents a job

Jump to

Keyboard shortcuts

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