Skip to content

TACC

TACC dataclass

TACC()

Use single-threaded ibrun rank slots in the current Slurm allocation.

Machine and queue selection belong to allocation/submission settings. Python callbacks run on the coordinator in sequential stages only.

Example

Inside an existing compatible compute allocation:

from femora import jobs
def run_in_allocation(workflow):
    return jobs.execute(workflow, workspace="allocation-run",
                        backend=jobs.backends.TACC())
Note

Requires Linux, Slurm allocation variables, ibrun, task_affinity, and one CPU per rank slot. This object does not authenticate or request nodes.

Methods:

Name Description
capacity

Validate the allocation and resolve available rank slots.

Methods:

capacity

capacity(requested: int | None) -> int

Validate the allocation and resolve available rank slots.

Parameters:

Name Type Description Default
requested int | None

Explicit capacity not exceeding SLURM_NTASKS, or None for all allocated slots.

required

Returns:

Name Type Description
slots int

Validated capacity.

Raises:

Type Description
ValueError

Allocation, launcher tools, threads per task, or request is invalid.