resource#
Classes:
Available worker node compute resources that only indicate presence, not the amount that may be allocated. |
|
Available compute resources on a worker node that are allocated to a job when it runs. |
|
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:
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:
List of available CPU core numbers.
List of available GPU numbers.
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:
Number of required CPU cores
Number of required GPUs
Number of 8GiB RAM slots
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.