-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_singularity.sh
More file actions
executable file
·36 lines (31 loc) · 1.01 KB
/
run_singularity.sh
File metadata and controls
executable file
·36 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#
# NOTE: all sbatch options are given via command line by
# swif2 when it submits the job. This is so they
# can be specified in the script run at JLab (launch_psc.py)
# without having to modify this file.
#
# This script will be run by the batch job on the PSC node.
# It will wake up in the working directory swif2 has created
# for the job. The input file will have a symbolic link in
# the current working directory.
#
# Arguments passed to this script:
#
# arg 1: singularity image (full path to image on bridges)
# arg 2: script (full path. usually to script_psc.sh)
# arg 3: jana config file
# arg 4: recon version (sub-directory of /group/halld/Software/builds/Linux_CentOS7-x86_64-gcc4.8.5-cntr)
# arg 5: RUN
# arg 6: FILE
#
export LAUNCHDIR=$1
export IMAGE=$2
export SCRIPTFILE=$3
export JANACONFIG=$4
export RECON_VER=$5
export RUN=$6
export FILE=$7
cvmfs_config probe
module load singularity
singularity run -B/cvmfs:/cvmfs -B${LAUNCHDIR}:/launch $IMAGE $SCRIPTFILE $JANACONFIG $RECON_VER $RUN $FILE