|
[Sponsors] |
June 4, 2013, 05:02 |
How to run OpenFoam using openMP.
|
#1 |
New Member
Ravi Kanth B
Join Date: Jul 2010
Posts: 10
Rep Power: 16 |
Dear all,
I want to run the simpleFoam solver using OpenMP. Can anyone suggest me how i can run the solver and what environment variables i need to set in order to make the openmp run. Thanks, Ravi |
|
June 4, 2013, 05:25 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Parallelization in OpenFOAM is done with MPI, not OpenMP. If you really want to use OpenMP, youll have to write some code. If you just want to run in parallel, read the according section in the user guide to learn how to do so using MPI.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. Last edited by akidess; June 4, 2013 at 05:26. Reason: added url to user guide |
|
June 4, 2013, 07:21 |
|
#3 |
New Member
Ravi Kanth B
Join Date: Jul 2010
Posts: 10
Rep Power: 16 |
Thanks for your reply. I do not have any problem running the code in MPI. I just thought there should be something like setting up OMP_NUM_THREADS to 8 and i thought i can use mpirun.
But if it like what you are saying it is different. Do you have any idea on running using OpenMP. Regards, Ravi Kanth |
|
June 4, 2013, 08:14 |
|
#4 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
hi whats the advantage of openMI to MPI that you want to use it?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
June 4, 2013, 08:38 |
|
#5 |
New Member
Ravi Kanth B
Join Date: Jul 2010
Posts: 10
Rep Power: 16 |
I want to compare the solver times / performance / drag values with DMP and also i am comparing against inhouse solvers / commercial solvers.
That is the main intention of running the openMP and MPI both on OpenFoam |
|
June 4, 2013, 11:14 |
|
#6 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
You can find here a very very short description of the main differences between OpenMP and MPI (where OpenMPI is a flavor of MPI).
http://lists.apple.com/archives/mt-s.../msg00002.html This text refers to SMP systems. Nowadays, you can assume that multi-cores computers are a kind of SMP system. Martin |
|
July 21, 2013, 08:21 |
openMP in openFoam
|
#7 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 14 |
Hi,
can you give me some idea for start to implementation the openMP protocol for parallelization the openFoam linear solver. |
|
July 21, 2013, 17:04 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hassan,
Since you asked me through the private message and since you asked here as well, I'll answer here what I can remember:
Bruno
__________________
|
|
July 30, 2013, 09:01 |
|
#9 |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 14 |
thank you bruno
|
|
August 24, 2013, 20:09 |
|
#10 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
To help add information to this thread, I remembered this thread when I saw the PDF from this other post:
Quote:
Quoting from the abstract: Quote:
Wait... the test case has 168100 cells and it was subdivided into 8 sub-domains, which would explain the performance boost, since this would be 20 kcells vs the rule of thumb of 50 kcells for MPI. So this (in theory) gives the ability to improve scalability for low cell count in sub-domains, therefore allowing for more cores assigned for a case.
__________________
|
|||
January 30, 2014, 08:46 |
openmp in openfoam
|
#11 | |
Member
Hassan
Join Date: Oct 2012
Location: Iran
Posts: 63
Rep Power: 14 |
Quote:
for activate the openmp protocol in your openfoam projects, you must add the "-fopenm" flag into the Make/options file of your project. regards |
||
March 8, 2016, 04:18 |
|
#12 | |
Member
Lianhua Zhu
Join Date: Aug 2011
Location: Wuhan, China
Posts: 35
Rep Power: 15 |
Quote:
I have tried to put -fopenmp in the solver's Make/option. But it seems wmake ignored it. Then I put -fopenmp in the wmake rules in Code:
~/OpenFOAM/OpenFOAM-2.4.0/wmake/rules/linux64Icc/c++ My environment is OS: CentOS 6.5 64 bit OF: OF2.4.0 CXX: Icc 15.0.1 MPI: Intel MPI 5.0.2 Hope that information helps. Lianhua |
||
June 20, 2016, 11:11 |
|
#13 | |
New Member
Xu Huang
Join Date: Apr 2015
Location: Netherlands
Posts: 23
Rep Power: 11 |
Quote:
Apart from putting -fopenmp in the wmake rules, is there any other modifications needed for a solver? Greetings, Xu |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Questions about Paraview to show Parallel run of OpenFOAM | padian | ParaView | 20 | September 24, 2018 13:52 |
ESI-OpenCFD Releases OpenFOAM v2.2.0 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 13 | March 30, 2013 17:52 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
OpenFOAM Training in Europe and USA | hjasak | OpenFOAM | 0 | August 8, 2008 06:33 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |