MPI run

13 views
Skip to first unread message

John Mayers

unread,
Oct 26, 2024, 1:11:02 PM10/26/24
to OpenMOC Users Group
Hello, dear developers.
I'm here with another stupid question.
I'm trying to run simulation on a cluster with SLURM and get error: "number of ranks is 1 and number of domains is 14".
As you can see cluster thinks that i give him only 1 cpu and prints this message from every task.

This is how my SLURM script looks:
#!/bin/sh
#SBATCH -n 56
#SBATCH --cpus-per-task 4
#SBATCH -o %j.out
#SBATCH -e %j.err

$MPIRUN python3 c5g7-3d-unrodded.py | tee openmoc.log."SLURM_JOBID"

Could you help me writting this script correctly to run it with MPI?

John Mayers

unread,
Oct 26, 2024, 1:12:55 PM10/26/24
to OpenMOC Users Group
An important clarification: when I run this model on a PC via mpirun, everything works, so the problem is not in the python file.

суббота, 26 октября 2024 г. в 20:11:02 UTC+3, John Mayers:
Reply all
Reply to author
Forward
0 new messages