I am looking for a simple way to run a program with various input files using slurm. I want to run each instance of the program on a single node so that it can make use of openMP. I found that probably the best way would be to use job arrays. But I am not sure how to tell SLURM to use 10 nodes and on each node, only one instance of the process will be running using multiple openMP threads. I was thinking of something like this in the batch file i would submit to slurm. Is that correct and will that do what I need? Is there some other way perhaps?
#SBATCH --nodes=10
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=12
#SBATCH --exclusive
#SBATCH --array=1-100
./prog --input file${SLURM_ARRAY_TASK_ID}.in