CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

OpenMpi error while running OpenFOAM in parallel

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Arumugaraj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2022, 04:32
Question OpenMpi error while running OpenFOAM in parallel
  #1
New Member
 
Arumugaraj
Join Date: Feb 2020
Posts: 2
Rep Power: 0
Arumugaraj is on a distinguished road
My processor consists of 24 cores and 48 threads and I am able to run OpenFOAM simulation in parallel using the command
Code:
mpirun -np 24 icoFoam -parallel
upto 24 logical processors above which (for example 42) it is showing the following error. I am rookie in openFOAM.


Quote:
Invalid MIT-MAGIC-COOKIE-1 key--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 42
slots that were requested by the application:

icoFoam

Either request fewer slots for your application, or make more slots
available for use.

A "slot" is the Open MPI term for an allocatable unit where we can
launch a process. The number of slots available are defined by the
environment in which Open MPI processes are run:

1. Hostfile, via "slots=N" clauses (N defaults to number of
processor cores if not provided)
2. The --host command line parameter, via a ":N" suffix on the
hostname (N defaults to 1 if not provided)
3. Resource manager (e.g., SLURM, PBS/Torque, LSF, etc.)
4. If none of a hostfile, the --host command line parameter, or an
RM is present, Open MPI defaults to the number of processor cores

In all the above cases, if you want Open MPI to default to the number
of hardware threads instead of the number of processor cores, use the
--use-hwthread-cpus option.

Alternatively, you can use the --oversubscribe option to ignore the
number of available slots when deciding the number of processes to
launch.
-----
zeyamiao likes this.
Arumugaraj is offline   Reply With Quote

Old   October 30, 2023, 08:25
Default
  #2
New Member
 
miaozeya
Join Date: Oct 2023
Posts: 1
Rep Power: 0
zeyamiao is on a distinguished road
I’m a student in China,and May I ask how you resolved it later~
zeyamiao is offline   Reply With Quote

Old   November 24, 2023, 05:39
Default
  #3
New Member
 
Ilia Khristoforov
Join Date: Oct 2023
Posts: 3
Rep Power: 2
cececerece is on a distinguished road
Hello! First of all, You should specify number of regions in DecomposeParDict according to the number of cores you want to use (I am sure you did this, but still it's important to note).

Also, I am trying to make a parallel simulation myself right now and I have found this presentation. From it, it looks like OpenFOAM package does not support hyperthreading and you should specify only the number of physical cores (which is 24 in your case as it seems).

Hope it helps! However, if anyone knows better, I would be glad to know too
cececerece is offline   Reply With Quote

Reply

Tags
mpi error, mpirun error, openfoam 2112, openmpi, parallel computation


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running OpenFOAM 2.3 in parallel vinz OpenFOAM Running, Solving & CFD 7 December 3, 2019 11:03
Running openfoam in parallel on local processors J_here OpenFOAM 11 October 31, 2019 07:34
error while running in parallel using openmpi on local mc 6 processors suryawanshi_nitin OpenFOAM 10 February 22, 2017 21:33
running multiple parallel cases in openfoam slows the simulation kkpal OpenFOAM Running, Solving & CFD 2 August 21, 2015 11:08
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04


All times are GMT -4. The time now is 14:17.