Hoffman2:Job Array: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


  #!/bin/bash
  #!/bin/bash
#$ -t 1-100
  #$ -cwd
  #$ -cwd
  # error = Merged with joblog
  # error = Merged with joblog
Line 19: Line 18:
  # Notify when
  # Notify when
  #$ -m bea
  #$ -m bea
#$ -t 1-100:1

Revision as of 21:08, 19 December 2019

Back to Hoffman2 Batch Mode

Job Array or Array jobs make it possible to process different subjects/files using the same script on multiple Hoffman2 working nodes at the same time.

Here, we use the same template code to show how it can be done Submit job


#!/bin/bash
#$ -cwd
# error = Merged with joblog
#$ -o joblog.$JOB_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 bea
#$ -t 1-100:1