icp/oer/courses/example-course/sections/02-parallel-and-multifile/01-parallel-hello/job.slurm

13 lines
281 B
Bash

#!/bin/sh
# Time limit is one minute.
# See "man sbatch" for other time formats.
#SBATCH --time=1
# Run 10 tasks on 2 nodes.
#SBATCH -N 2 -n 10
# Output goes to job.out, error messages to job.err.
#SBATCH --error=job.err --output=job.out
mpiexec ./program
echo $? >> job.exit