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

OpenFOAM 2012 and MPI (openmpi 4.0.3)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By KTG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2021, 16:07
Default OpenFOAM 2012 and MPI (openmpi 4.0.3)
  #1
New Member
 
Mark
Join Date: Jun 2017
Posts: 4
Rep Power: 8
m_a_s is on a distinguished road
Has anyone had any problems with running OF with open mpi 4.0.3.


I had been using OF1912 which came with Open MPI 1.10.7.
Today I tried using OF2012 which comes with Open MPI 4.0.3.


I am getting the "There are not enough slots available in the system...." and it appears that the number of slots the Open MPI sees is just the number of cores, not threads. Same decomposeParDict.


I am using Ubuntu 20.04 on two different boxes. One is a native install, the other is WSL2 on a Win10 box. Both boxes are AMD Threadripper workstations.


Thoughts?
m_a_s is offline   Reply With Quote

Old   April 1, 2021, 20:21
Default
  #2
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10
KTG is on a distinguished road
I don't think you will see a speedup if you run the number of processors equal to the number of threads, rather than cores, but you should try it and report back to us! I think you can do this by running, for example with 4 cores and 2 threads each:



mpirun -np 8 --bind-to hwthread


verses:


mpirun -np 4 --bind-to core


I could be wrong, but give it a try and see what happens.
KTG is offline   Reply With Quote

Old   April 1, 2021, 23:17
Default
  #3
New Member
 
Mark
Join Date: Jun 2017
Posts: 4
Rep Power: 8
m_a_s is on a distinguished road
results:
> np 32 / hwthread: 3m-17s
> np 16 / core: 2m-38s


Wow!
m_a_s is offline   Reply With Quote

Old   April 1, 2021, 23:21
Default
  #4
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 10
KTG is on a distinguished road
Yay! Now you can move on with your life until the next problem!
DominikMuetter likes this.
KTG is offline   Reply With Quote

Old   April 2, 2021, 04:56
Default
  #5
New Member
 
Dominik Mütter
Join Date: Mar 2021
Location: Europe
Posts: 4
Rep Power: 5
DominikMuetter is on a distinguished road
You can also oversubscribe the number of slots in openmpi with "mpirun -np x --oversubscribe"
DominikMuetter is offline   Reply With Quote

Reply

Tags
mpi, of2012, open mpi


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
openFOAM mpirun error on cluster cheng1988sjtu OpenFOAM Running, Solving & CFD 1 November 14, 2012 22:13


All times are GMT -4. The time now is 01:56.