mache.parallel.slurm.SlurmSystem

class mache.parallel.slurm.SlurmSystem(config: ConfigParser)[source]

SLURM resource manager for parallel jobs.

__init__(config: ConfigParser)[source]

Set available resources for the parallel system based on the config.

Parameters:

config (ConfigParser) – The configuration parser containing the parallel system options.

Methods

__init__(config)

Set available resources for the parallel system based on the config.

get_config(key[, default])

Get a config value from the parallel configs.

get_config_int(key[, default])

Get an integer config value from the parallel configs.

get_parallel_command(args, ntasks[, ...])

Get the parallel execution command for the current system.

get_scheduler_target(config, target_type, nodes)

Choose queue/partition/qos metadata target for a node count.

get_slurm_options(config, nodes[, ...])

Get Slurm submission options for a requested node count.

resolve_submission(config, nodes, target_type)

Resolve a scheduler target and effective node count.