Skip to content

Commit 61eda66

Browse files
TaralyticsIntron7
andauthored
Update installation.md (#653)
docs: add HPC/SLURM apptainer usage note. Tested with v0.13.2.sif. Co-authored-by: Severin Dicks <37635888+Intron7@users.noreply.github.com>
1 parent 2afa3c6 commit 61eda66

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/installation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,17 @@ Then run the following command to execute the container:
202202
```bash
203203
apptainer run --nv rsc.sif
204204
```
205+
### Running on HPC systems with SLURM
205206

207+
When running on HPC systems via SLURM, conda must be explicitly activated before running Python scripts. Use `apptainer exec` instead of `apptainer run`:
208+
209+
```bash
210+
apptainer exec --nv \
211+
--bind /path/to/your/data:/path/to/your/data \
212+
rsc.sif \
213+
bash -c "source /opt/conda/etc/profile.d/conda.sh && conda activate base && python"
214+
```
215+
Without sourcing conda first, `CONDA_PREFIX` will be unset and CuPy will fail to locate the CUDA libraries inside the container, resulting in a `TypeError: expected str, bytes or os.PathLike object, not NoneType` error.
206216

207217
# System requirements
208218

0 commit comments

Comments
 (0)