Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ansys/hps/client/jms/resource/task_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class HpcResources(Object):
Whether a job can't share resources with other running jobs.
queue : str, optional
Name of the job scheduler queue.
use_local_scratch : bool, optional
Whether to use node local storage.
"""

class Meta:
Expand All @@ -64,12 +66,14 @@ def __init__(
num_gpus_per_node: int = missing,
exclusive: bool = missing,
queue: str = missing,
use_local_scratch: bool = missing,
**kwargs,
):
self.num_cores_per_node = num_cores_per_node
self.num_gpus_per_node = num_gpus_per_node
self.exclusive = exclusive
self.queue = queue
self.use_local_scratch = use_local_scratch

self.obj_type = self.__class__.__name__

Expand Down
4 changes: 4 additions & 0 deletions src/ansys/hps/client/jms/schema/task_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class Meta:
queue = fields.Str(
allow_none=True, metadata={"description": "Name of the job scheduler queue."}
)
use_local_scratch = fields.Bool(
allow_none=True,
metadata={"description": "Whether to use node local storage."},
)


class ResourceRequirementsSchema(BaseSchema):
Expand Down