libdrmaa

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: BSD-2-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLibDRMAAContext

func NewLibDRMAAContext() *wfl.Context

NewLibDRMAAContext creates a *wfl.Context which is used to manage jobs through libdrmaa.so.

func NewLibDRMAAContextByCfg

func NewLibDRMAAContextByCfg(cfg Config) *wfl.Context

NewLibDRMAAContextByCfg creates a *wfl.Context which is used to manage jobs through libdrmaa.so. The configuration accepts a DefaultTemplate which can be filled out with default values merged into each job submission.

func NewLibDRMAAContextByCfgWithInitParams added in v1.2.7

func NewLibDRMAAContextByCfgWithInitParams(cfg Config, params libdrmaa.LibDRMAASessionParams) *wfl.Context

NewLibDRMAAContextByCfg creates a *wfl.Context which is used to manage jobs through libdrmaa.so. The configuration accepts a DefaultTemplate which can be filled out with default values merged into each job submission. Additionally the underlying job tracker can be configured. That allows to use features like keeping job ids persistent is a local DB.

Types

type Config

type Config struct {
	// DBFile is used by the session manager and is created if
	// it does not exist
	DBFile          string
	DefaultTemplate drmaa2interface.JobTemplate
	// JobDBFile when set makes jobs persistent in the DB
	// so that it is possible to re-connect to running jobs
	// after restarting the app (SGE).
	JobDBFile string
}

Config is the configuration for the libdrmaa context.

Jump to

Keyboard shortcuts

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