Skip to content

Commit f790429

Browse files
committed
Add special resolution for / in src of container mounts for slurm
Signed-off-by: Hemil Desai <[email protected]>
1 parent 94dae7d commit f790429

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/nemo_run/core/execution/slurm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,10 @@ def get_container_flags(
865865
_container_flags = ["--container-image", container_image] if container_image else []
866866

867867
new_mounts = copy.deepcopy(base_mounts)
868+
for i, mount in enumerate(new_mounts):
869+
if mount.startswith("/$nemo_run"):
870+
new_mounts[i] = mount.replace("$nemo_run", src_job_dir)
871+
868872
new_mounts.append(f"{src_job_dir}:/{RUNDIR_NAME}")
869873
_mount_arg = ",".join(new_mounts)
870874
_container_flags += ["--container-mounts", _mount_arg]

0 commit comments

Comments
 (0)