mache.parallel.slurm.SlurmOptions

class mache.parallel.slurm.SlurmOptions(partition: str, qos: str, constraint: str, gpus_per_node: str, max_wallclock: str, effective_nodes: int, wall_time: str = '', honored: bool = True, reason: str | None = None)[source]

Slurm submission options resolved from a machine’s config.

Variables:
  • partition (str) – The Slurm partition, or an empty string if the machine defines none.

  • qos (str) – The Slurm quality of service, or an empty string if the machine defines none.

  • constraint (str) – The Slurm constraint, or an empty string if the machine defines none.

  • gpus_per_node (str) – The number of GPUs per node, or an empty string if not configured.

  • max_wallclock (str) – The most restrictive maximum wall clock (HH:MM:SS) of the selected partition and QOS, or an empty string if neither sets one.

  • effective_nodes (int) – The node count after clamping to the selected targets’ limits.

  • wall_time (str) – The requested wall time capped at max_wallclock, or an empty string if no wall time was requested.

  • honored (bool) – Whether every requested target – partition, QOS, constraint and scheduler_target – was used. True when none was requested.

  • reason (str or None) – A human-readable explanation of why a requested target could not be honored, suitable for printing verbatim. None when honored is True.

__init__(partition: str, qos: str, constraint: str, gpus_per_node: str, max_wallclock: str, effective_nodes: int, wall_time: str = '', honored: bool = True, reason: str | None = None) None

Methods

__init__(partition, qos, constraint, ...[, ...])

Attributes

honored

reason

wall_time

partition

qos

constraint

gpus_per_node

max_wallclock

effective_nodes