Skip to content

Commit a3b5892

Browse files
authored
MAke sure all 04 examples run from /workdir independently of where users start the container from.
1 parent 8975e3d commit a3b5892

File tree

1 file changed

+4
-4
lines changed
  • 04_Understanding_GPU_activity_and_checking_jobs

1 file changed

+4
-4
lines changed

04_Understanding_GPU_activity_and_checking_jobs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ mkdir -p torch-cache hf-cache
6262
srun -n1 singularity exec \
6363
-B .:/workdir \
6464
/appl/local/containers/sif-images/lumi-pytorch-rocm-6.1.3-python-3.12-pytorch-v2.4.1.sif \
65-
bash -c '$WITH_CONDA ; \
65+
bash -c '$WITH_CONDA ; cd /workdir ; \
6666
HIP_VISIBLE_DEVICES=0 \
6767
TORCH_HOME=/workdir/torch-cache \
6868
HF_HOME=/workdir/hf-cache \
@@ -122,7 +122,7 @@ So, running the following:
122122
srun -n1 singularity exec \
123123
-B .:/workdir \
124124
/appl/local/containers/sif-images/lumi-pytorch-rocm-6.1.3-python-3.12-pytorch-v2.4.1.sif \
125-
bash -c '$WITH_CONDA ; \
125+
bash -c '$WITH_CONDA ; cd /workdir ; \
126126
HIP_VISIBLE_DEVICES=0 \
127127
AMD_LOG_LEVEL=4 \
128128
TORCH_HOME=/workdir/torch-cache \
@@ -175,7 +175,7 @@ Now we can just run the profiler by preceding our original command with `rocprof
175175
srun -n1 singularity exec \
176176
-B .:/workdir \
177177
/appl/local/containers/sif-images/lumi-pytorch-rocm-6.1.3-python-3.12-pytorch-v2.4.1.sif \
178-
bash -c '$WITH_CONDA ; \
178+
bash -c '$WITH_CONDA ; cd /workdir ; \
179179
HIP_VISIBLE_DEVICES=0 \
180180
TORCH_HOME=/workdir/torch-cache \
181181
HF_HOME=/workdir/hf-cache \
@@ -223,7 +223,7 @@ Run as before:
223223
srun -n1 singularity exec \
224224
-B .:/workdir \
225225
/appl/local/containers/sif-images/lumi-pytorch-rocm-6.1.3-python-3.12-pytorch-v2.4.1.sif \
226-
bash -c '$WITH_CONDA ; \
226+
bash -c '$WITH_CONDA ; cd /workdir ; \
227227
HIP_VISIBLE_DEVICES=0 \
228228
TORCH_HOME=/workdir/torch-cache \
229229
HF_HOME=/workdir/hf-cache \

0 commit comments

Comments
 (0)