CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Openmpi SU2 simple parallel install gives problem in iterations

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pcg
  • 1 Post By pcg

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2020, 14:54
Default Openmpi SU2 simple parallel install gives problem in iterations
  #1
New Member
 
Join Date: Jul 2020
Posts: 22
Rep Power: 5
steadyman is on a distinguished road
Hello everyone

I use ubuntu 18.04 LTS.
I download SU2 linux 7.0.5 Blackbird for parallel computation. I have written necessary paths in my .bashrc.

For serial it works fine.

For parallel it gives the following parallel_openmpi_problem.png

I have read some comments but it states error due to SU2 compilation. However, for simple install we have no compilation process as stated here https://su2code.github.io/docs_v7/SU2-Linux-MacOS/

. It works with MPICH fine but If I use OPENMPI it gives same iteration numbers as in parallel_openmpi_problem.png

Thanks in advance
steadyman is offline   Reply With Quote

Old   July 4, 2020, 18:18
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13
pcg is on a distinguished road
That usually happens when the version of mpi used to run the code is different from the one used to compile it.

Generally it is not a very good idea to have two mpi distributions visible at the same time, if possible pick either mpich or openmpi.
steadyman likes this.
pcg is offline   Reply With Quote

Old   July 4, 2020, 18:32
Smile openmpi
  #3
New Member
 
Join Date: Jul 2020
Posts: 22
Rep Power: 5
steadyman is on a distinguished road
Quote:
Originally Posted by pcg View Post
That usually happens when the version of mpi used to run the code is different from the one used to compile it.

Generally it is not a very good idea to have two mpi distributions visible at the same time, if possible pick either mpich or openmpi.

I have just installed openmpi no MPICH is installed on my PC.
steadyman is offline   Reply With Quote

Old   July 5, 2020, 08:01
Default Uninstall openmpi and install previous version does not work
  #4
New Member
 
Join Date: Jul 2020
Posts: 22
Rep Power: 5
steadyman is on a distinguished road
Quote:
Originally Posted by pcg View Post
That usually happens when the version of mpi used to run the code is different from the one used to compile it.

Generally it is not a very good idea to have two mpi distributions visible at the same time, if possible pick either mpich or openmpi.

I have changed my openmpi version by uninstalling new and replacing with the old one. Here is my openmpi version openmpi_version.png


I tell step by step what I have done after changing openmpi version

1.Again my serial SU2 works fine but in parallel (it is simple installed not built in source) it gives parallel_computation_error.png

I think it is not about SU2 it is all about openmpi issue. Because I have 4 processors and I can run only 2 of them with mpirun. If I try to run it gives this again parallel_computation_error.png
2. I install mpi4py. Then I can run all 4 processors but they all give this after_installing_mpi4py.png


How can I solve this openmpi issue again I do not think it is nothing with SU2 ?
steadyman is offline   Reply With Quote

Old   July 6, 2020, 05:38
Default
  #5
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13
pcg is on a distinguished road
Maybe you have 2 physical cores with hyperthreading? In which case you see 4 cores but for computationally intensive tasks you should use only 2.
Usually OpenMPI detects the number of physical cores and complains if you try to use more.
steadyman likes this.
pcg is offline   Reply With Quote

Old   July 6, 2020, 05:54
Default
  #6
New Member
 
Join Date: Jul 2020
Posts: 22
Rep Power: 5
steadyman is on a distinguished road
Quote:
Originally Posted by pcg View Post
Maybe you have 2 physical cores with hyperthreading? In which case you see 4 cores but for computationally intensive tasks you should use only 2.
Usually OpenMPI detects the number of physical cores and complains if you try to use more.
After installing mpi4py I can run 4 cores however problem occurs related to repetitive iterations as I stated my last shared picture.

Last edited by steadyman; July 7, 2020 at 02:05.
steadyman is offline   Reply With Quote

Old   July 13, 2021, 03:08
Default
  #7
Member
 
Ndong-Mefane Stephane Boris
Join Date: Nov 2013
Location: Kawasaki (JAPAN)
Posts: 53
Rep Power: 12
S_teph_2000 is on a distinguished road
Hello Steadyman,

1Year has passed since your last post...did you find a solution?
I am experiencing the same "repetitive iterations" problem for more than 1 core calculation with Ubuntu.

Kazu
S_teph_2000 is offline   Reply With Quote

Old   February 11, 2022, 13:04
Default Mpich
  #8
New Member
 
Join Date: Jul 2020
Posts: 22
Rep Power: 5
steadyman is on a distinguished road
Quote:
Originally Posted by S_teph_2000 View Post
Hello Steadyman,

1Year has passed since your last post...did you find a solution?
I am experiencing the same "repetitive iterations" problem for more than 1 core calculation with Ubuntu.

Kazu
Hello Kazu

I left using opnmpi and I will start use MPICH to solve this problem.

Best
steadyman is offline   Reply With Quote

Reply


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
Suppress twoPhaseEulerFoam energy AlmostSurelyRob OpenFOAM Running, Solving & CFD 33 September 25, 2018 17:45
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 22:13
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35


All times are GMT -4. The time now is 23:34.