I have two executable file need to run: a.out
and b.out
.
(1) I want run the a.out
on two node, each node have one a.out
process.
(2) I want run the b.out
on two node,the node is same in (1), but each node have two b.out
processes.
My naive code shown as follow
#!/bin/bash
#SBATCH --nodes 2
#SBATCH --ntasks-per-node 2
srun a.out
srun b.out
But it can not handle the needs above. How can I write sbatch to achieve that?
I apologize if it is a stupid problem. Thanks for your time.