gaps.hpc#

HPC Execution utilities.

Module attributes

DEFAULT_STDOUT_PATH

Default directory for .stdout and .stderr files.

Functions

format_env([conda_env])

Get special sbatch request strings for SLURM conda environments.

format_walltime([hours])

Get the SLURM walltime string in format "HH:MM:SS"

make_sh(fname, script)

Make a shell script (.sh file) to execute a subprocess.

submit(cmd[, background, background_stdout])

Open a subprocess and submit a command.

Classes

COMMANDS(SUBMIT, CANCEL)

Create new instance of COMMANDS(SUBMIT, CANCEL)

HpcJobManager([user, queue_dict])

Abstract HPC job manager framework

PBS([user, queue_dict])

Subclass for PBS subprocess jobs.

Q_COLUMNS(NAME, ID, STATUS)

Create new instance of Q_COLUMNS(NAME, ID, STATUS)

SLURM([user, queue_dict])

Subclass for SLURM subprocess jobs.