Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added flags to ensure that host environment variables don't get passe…
Browse files Browse the repository at this point in the history
…d down to the container in Apptainer/Singularity (which wreaks havoc on the RCAC cluster)
  • Loading branch information
daminton committed Jun 7, 2023
1 parent 49e77a3 commit afb2c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apptainer/bin/swiftest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh --
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`}
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1}
apptainer run --bind $(pwd):$(pwd) --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@"
apptainer run --bind $(pwd):$(pwd) --cleanenv --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@"
2 changes: 1 addition & 1 deletion singularity/bin/swiftest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh --
OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`}
FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1}
singularity run --bind $(pwd):$(pwd) --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@"
singularity run --bind $(pwd):$(pwd) --cleanenv --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@"

0 comments on commit afb2c9f

Please sign in to comment.