Skip to content

Commit

Permalink
[src][slurm] add array.sh example
Browse files Browse the repository at this point in the history
  • Loading branch information
smokhov committed Nov 12, 2023
1 parent 461d3ee commit d826d14
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/array.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d826d14

Please sign in to comment.