Skip to content

Commit b7eb47a

Browse files
committed
fix scripts/variables.sh not sourceable problem by sourcing .env instead
1 parent 8dac40a commit b7eb47a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jobs/psc/gpu-singularity.job

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ set -x
1717

1818
cd todo-your-code-directory || exit # this directory refers to the absolute path outside any docker/singularity container/instance
1919
scripts/run_singularity_instance.sh
20-
source scripts/variables.sh
21-
srun singularity exec instance://"${CONTAINER_NAME}" zsh -c "source ~/.zshrc && conda run -n todo-your-conda-env-name todo-your-code-entrypoint"
20+
source .env
21+
srun -u singularity exec --pwd "${HOME_FOLDER}/${CODE_FOLDER}" instance://"${CONTAINER_NAME}" zsh -c "source ~/.zshrc && conda run -n todo-your-conda-env-name todo-your-code-entrypoint"

0 commit comments

Comments
 (0)