Skip to content

Commit 3255673

Browse files
guyueh1Guyue Huang
andauthored
Slurm add --segment argument (#186)
* Support --segment; add cuda-event-trace=false Signed-off-by: Guyue Huang <[email protected]> * Remove irrelevant changes Signed-off-by: Guyue Huang <[email protected]> --------- Signed-off-by: Guyue Huang <[email protected]> Signed-off-by: Guyue Huang <[email protected]> Co-authored-by: Guyue Huang <[email protected]>
1 parent ddc130c commit 3255673

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nemo_run/core/execution/slurm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ def your_slurm_executor() -> run.SlurmExecutor:
241241
"wait_all_nodes",
242242
"wckey",
243243
"wrap",
244+
"segment",
244245
]
245246

246247
SRUN_ARGS = [
@@ -338,6 +339,7 @@ class ResourceRequest:
338339
monitor_group_job_wait_time: int = 60
339340
setup_lines: Optional[str] = None
340341
het_group_indices: Optional[list[int]] = None
342+
segment: Optional[int] = None
341343

342344
#: Set by the executor; cannot be initialized
343345
job_name: str = field(init=False, default="nemo-job")

0 commit comments

Comments
 (0)