Skip to content

Commit da9d676

Browse files
authored
Merge pull request #236 from NYU-RTS/mdweisner-patch-4
Update 03_singularity_with_conda.md
2 parents 45f958c + 8fd89b6 commit da9d676

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/hpc/07_containers/03_singularity_with_conda.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ For the most recent supported versions of PyTorch, please check the [PyTorch web
8383

8484
Launch the appropriate Singularity container in read/write mode (with the :rw flag):
8585
```sh
86-
singularity exec --overlay overlay-15GB-500K.ext3:rw /share/apps/images/cuda12.1.1-cudnn8.9.0-devel-ubuntu22.04.2.sif /bin/bash
86+
singularity exec --fakeroot --overlay overlay-15GB-500K.ext3:rw /share/apps/images/cuda12.1.1-cudnn8.9.0-devel-ubuntu22.04.2.sif /bin/bash
8787
```
8888

89-
The above starts a bash shell inside the referenced Singularity Container overlaid with the 15GB 500K you set up earlier. This creates the functional illusion of having a writable filesystem inside the typically read-only Singularity container.
89+
The above starts a bash shell inside the referenced Singularity Container overlaid with the 15GB 500K you set up earlier. This creates the functional illusion of having a writable filesystem inside the typically read-only Singularity container.
90+
91+
:::information
92+
Please note that the default Singularity on Torch is now Apptainer, which requires the --fakeroot option to load overlay files in read/write mode.
9093

9194
Now, inside the container, download and install miniforge to `/ext3/miniforge3`:
9295
```bash
@@ -164,7 +167,7 @@ The login nodes restrict memory to 2GB per user, which may cause some large pack
164167
After it is running, you’ll be redirected to a compute node. From there, run singularity to setup on conda environment, same as you were doing on login node:
165168

166169
```sh
167-
[NetID@cm001 pytorch-example]$ singularity exec --overlay overlay-15GB-500K.ext3:rw /share/apps/images/cuda12.1.1-cudnn8.9.0-devel-ubuntu22.04.2.sif /bin/bash
170+
[NetID@cm001 pytorch-example]$ singularity exec --fakeroot --overlay overlay-15GB-500K.ext3:rw /share/apps/images/cuda12.1.1-cudnn8.9.0-devel-ubuntu22.04.2.sif /bin/bash
168171

169172
Singularity> source /ext3/env.sh
170173
# activate the environment

0 commit comments

Comments
 (0)