@@ -62,7 +62,7 @@ mkdir -p torch-cache hf-cache
6262srun -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:
122122srun -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
175175srun -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:
223223srun -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