We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94dae7d commit f790429Copy full SHA for f790429
src/nemo_run/core/execution/slurm.py
@@ -865,6 +865,10 @@ def get_container_flags(
865
_container_flags = ["--container-image", container_image] if container_image else []
866
867
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
+
872
new_mounts.append(f"{src_job_dir}:/{RUNDIR_NAME}")
873
_mount_arg = ",".join(new_mounts)
874
_container_flags += ["--container-mounts", _mount_arg]
0 commit comments