Hoffman2:Submit jobarray: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Back to all things Hoffman2 <nowiki>#!/bin/bash #$ -cwd # error = Merged with joblog #$ -o joblog.$JOB_ID.$TASK_ID #$ -j y #$ -pe shared 2 #$ -l h_rt=8:00:00,h_d...") |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
. /u/local/Modules/default/init/modules.sh | . /u/local/Modules/default/init/modules.sh | ||
module use /u/project/CCN/apps/modulefiles | module use /u/project/CCN/apps/modulefiles | ||
# Load the FSL module | |||
module load fsl | module load fsl | ||
| Line 35: | Line 37: | ||
echo "This is subject ${subjects[$SGE_TASK_ID]}" | echo "This is subject ${subjects[$SGE_TASK_ID]}" | ||
# | # Your script content goes here...</nowiki> | ||
Latest revision as of 19:20, 29 November 2017
#!/bin/bash
#$ -cwd
# error = Merged with joblog
#$ -o joblog.$JOB_ID.$TASK_ID
#$ -j y
#$ -pe shared 2
#$ -l h_rt=8:00:00,h_data=4G
# Email address to notify
#$ -M $USER@mail
# Notify when
#$ -m a
# Job array indexes
#$ -t 1-5:1
# Load the job environment:
. /u/local/Modules/default/init/modules.sh
module use /u/project/CCN/apps/modulefiles
# Load the FSL module
module load fsl
# This is optional
# More info here: https://www.ccn.ucla.edu/wiki/index.php/Hoffman2:FSL
export NO_FSL_JOBS=true
# Set up the subjects list
declare -a subjects
subjects[1]="su3v3hkaykw2"
subjects[2]="wxg5mk5u5xbz"
subjects[3]="6q2bgkqu5grp"
subjects[4]="whjue68jmwyh"
subjects[5]="pfx3ju9wz8rr"
echo "This is sub-job $SGE_TASK_ID"
echo "This is subject ${subjects[$SGE_TASK_ID]}"
# Your script content goes here...