resource#

Classes:

FixedResourceSlots

Available worker node compute resources that only indicate presence, not the amount that may be allocated.

ResourceSlots

Available compute resources on a worker node that are allocated to a job when it runs.

ResourceSpec

Job resource requirements.

class FixedResourceSlots#

Available worker node compute resources that only indicate presence, not the amount that may be allocated. (e.g., “SSD is available or not available”)

Attributes:

SSD

Whether this target thas an SSD

SSD: bool#

Whether this target thas an SSD

class ResourceSlots#

Available compute resources on a worker node that are allocated to a job when it runs.

Attributes:

CPU

List of available CPU core numbers.

GPU

List of available GPU numbers.

RAM

List of available 8GB slots.

CPU: List[int]#

List of available CPU core numbers. For example, if worker has 4 CPU cores allocated, is set to [0, 1, 2, 3].

GPU: List[int]#

List of available GPU numbers. For example, if a worker has 2 GPUs, is set to [0, 1]. If a worker is configured with subset of GPUs, only that subset is listed here e.g., [1].

RAM: List[int]#

List of available 8GB slots. For example, if a worker has 32GB of RAM, is set to [0, 1, 2, 3].

class ResourceSpec#

Job resource requirements. Used to allocate compute resources for a job at queue time.

Attributes:

cpu

Number of required CPU cores

gpu

Number of required GPUs

ram

Number of 8GiB RAM slots

ssd

Whether an SSD is required for temporary storage.

cpu: int#

Number of required CPU cores

gpu: int#

Number of required GPUs

ram: int#

Number of 8GiB RAM slots

ssd: bool#

Whether an SSD is required for temporary storage.