Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The executable script used in the workflow definition should be used primarily to set up the environment etc and submit the analysis script to the HPC workload management infrastructure. For example, a simple executable script that uses SLURM's sbatch to submit the analysis script is available here - /reg/g/psdm/tutorials/batchprocessing/arp_submit.sh

Code Block
#!/bin/bash


source /reg/g/psdm/etc/psconda.sh

ABS_PATH=/reg/g/psdm/tutorials/batchprocessing

sbatch --nodes=2 --partition=psanaq --time=5 --output="arp_example_${RUN_NUM}_%j.log"  $ABS_PATH/arp_actual.py "$@"

...