From d826d143119cb62e9ff0646daec10081b6759890 Mon Sep 17 00:00:00 2001 From: Serguei Mokhov Date: Sun, 12 Nov 2023 00:37:51 -0500 Subject: [PATCH] [src][slurm] add array.sh example --- src/array.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 src/array.sh diff --git a/src/array.sh b/src/array.sh new file mode 100755 index 0000000..e3f6a9e --- /dev/null +++ b/src/array.sh @@ -0,0 +1,17 @@ +#!/encs/bin/tcsh + +#SBATCH -J arrayexample +#SBATCH -c 1 +#SBATCH -N 1 +#SBATCH -t 0-2:00 +#SBATCH --array=1-30 +#SBATCH -o myprogram%A_%a.out +# %A" is replaced by the job ID and "%a" with the array index +#SBATCH -e myprogram%A_%a.err + +echo "Would be input shard: input$SLURM_ARRAY_TASK_ID.dat" +#/myprogram input$SLURM_ARRAY_TASK_ID.dat + +sleep 10 + +# EOF