CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Hardware (https://www.cfd-online.com/Forums/hardware/)
-   -   Problems with using MPI (https://www.cfd-online.com/Forums/hardware/246778-problems-using-mpi.html)

Praveen_krish December 22, 2022 12:34

Problems with using MPI
 
Hey everyone, I am right now working on a linux machine with 104 cores and 128GB RAM. I installed MPICH and SU2 binary that supports mpi.
When I run the SU2 software with "mpiexec -n 10 SU2_CFD <configfile.cfg>" or "mpirun -n 10 SU2_CFD <configfile.cfg>" commands , instead of parallel computation over 10 cores the process is getting duplicated 10 times. I see the same iterations running on all cores.
This problem doesn't happen on my windows system. Where I installed Microsoft MPI and it works as expected. The computation occurs parallelly and hence it reaches convergence much faster.

Does anyone know what's the problem? If yes, what can be the solution?

PS: The MPICH is perfectly installed on the device (ran all the tests mentioned in the installation guide).

wkernkamp December 22, 2022 15:56

It must be that you compiled SU2 without the parallel options and defaults were not activated because the mpi libraries were not found.

naffrancois December 23, 2022 03:03

Hello,

Additionnaly to a problem in SU2 setup, this problem typically happens when you have two concurrent mpi installed in your system, e.g. openmpi and mpich. Then it might happen that you launch mpirun from mpich using libs from openmpi or vice versa.

You should check which executable and libs are used by default and change environment variables accordingly (PATH and LD_LIBRARY_PATH) in your bash file.

wkernkamp December 23, 2022 16:57

To compile SU2 parallel on linux, I used openmpi 3.1.6 which I compiled from source after removing the standard openmpi (it was 4.???).


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