Skip to content

Commit

Permalink
adapt script to datarmor
Browse files Browse the repository at this point in the history
  • Loading branch information
pgdurand committed Nov 15, 2022
1 parent 5c399a5 commit 6cd999e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions singularity/test_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ function downloadFile(){

# Depending on host platform, load singularity env
if hasCommand qstat; then
echo "running on DATARMOR using PBS Pro scheduler"
source /etc/profile.d/modules.sh
module purge
module load singularity/3.4.1
BDM_SCRATCH_DIR=$SCRATCH
hname=$(hostname)
if [[ $hname == *"datarmor"* ]]; then
echo "running on DATARMOR using PBS Pro scheduler"
source /etc/profile.d/modules.sh
module purge
module load singularity/3.4.1
BDM_SCRATCH_DIR=$SCRATCH
fi
elif hasCommand sbatch; then
hname=$(hostname -A)
if [[ $hname == *"roscoff"* ]]; then
Expand Down

0 comments on commit 6cd999e

Please sign in to comment.