tfep.utils.cli.launcher.SRunTool

class tfep.utils.cli.launcher.SRunTool(*args, executable_path=None, **kwargs)[source]

Bases: CLITool

SLURM srun command line utility.

See also

SRunLauncher

__init__(*args, executable_path=None, **kwargs)

Methods

__init__(*args[, executable_path])

to_subprocess()

Convert the command to a list that can be run with the subprocess module.

Attributes

EXECUTABLE_PATH

SUBPROGRAM

cpu_bind

A generic command line key-value option.

distribution

A generic command line key-value option.

executable_path

The path to the command executable to run.

multiprog_config_file_path

A generic command line key-value option.

n_cpus_per_task

A generic command line key-value option.

n_nodes

A generic command line key-value option.

n_tasks

A generic command line key-value option.

n_tasks_per_node

A generic command line key-value option.

relative_node_idx

A generic command line key-value option.

time

A generic command line key-value option.

property executable_path

The path to the command executable to run.

to_subprocess()[source]

Convert the command to a list that can be run with the subprocess module.

Returns:

subprocess_cmd – The command in subprocess format. For example ['grep', '-v'].

Return type:

List[str]