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

Problem with MPI when testing my first case in SU2

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By bigfootedrockmidget
  • 1 Post By Tomjugj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2023, 05:15
Exclamation Problem with MPI when testing my first case in SU2
  #1
New Member
 
Guangjing JU
Join Date: Sep 2023
Posts: 9
Rep Power: 2
Tomjugj is on a distinguished road
After typing "SU2_CFD thermalbath.cfg", the terminal returned:

--------------------------------------------------------------------------
It looks like opal_init failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

opal_shmem_base_select failed
--> Returned value -1 instead of OPAL_SUCCESS
--------------------------------------------------------------------------
--------------------------------------------------------------------------
It looks like orte_init failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during orte_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

opal_init failed
--> Returned value Error (-1) instead of ORTE_SUCCESS
--------------------------------------------------------------------------
--------------------------------------------------------------------------
It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems. This failure appears to be an internal failure; here's some
additional information (which may only be relevant to an Open MPI
developer):

ompi_mpi_init: ompi_rte_init failed
--> Returned "Error" (-1) instead of "Success" (0)
--------------------------------------------------------------------------
*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
*** and potentially your MPI job)
Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!

My .bashrc file has following added:

export PATH=/home/jugj/doc/mpich-4.0.2/mpich-install/bin:$PATH
export LD_LIBRARY_PATH=/home/jugj/doc/mpich-4.0.2/mpich-install/lib:$LD_LIBRARY_PATH
export CPATH=/home/jugj/doc/mpich-4.0.2/mpich-install/include:$CPATH

export SU2_RUN=/usr/local/bin
export SU2_HOME=/home/jugj/SU2/su2code-SU2-1fe5981
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN
export MPP_DATA_DIRECTORY=$SU2_HOME/subprojects/Mutationpp/data
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SU2_HOME/build/subprojects/Mutationpp:$LD_LIBRARY_PATH

export MPICC=mpicc
export MPICXX=mpicxx
export MPIF90=mpif90

Anyone can give any suggestion?
Tomjugj is offline   Reply With Quote

Old   September 7, 2023, 14:18
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 529
Rep Power: 17
bigfootedrockmidget is on a distinguished road
did you compile SU2 with the meson options:

Code:
-Dwith-mpi=enabled -Dcustom-mpi=true -Dextra-deps=mpich
And when you run meson, did you see that the compiler was using the mpich compiler, something like this:

Code:
C compiler for the host machine: /usr/bin/mpicc.mpich (gcc 11.4.0 "gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") 
C linker for the host machine: /usr/bin/mpicc.mpich ld.bfd 2.38 
C++ compiler for the host machine: /usr/bin/mpicxx.mpich (gcc 11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0") 
C++ linker for the host machine: /usr/bin/mpicxx.mpich ld.bfd 2.38


In my case, I also have:

Code:
$echo $MPICC

 /usr/bin/mpicc.mpich
$
[So my guess is that you are not actually compiling with the mpich compiler.]
Tomjugj likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   September 8, 2023, 03:55
Default
  #3
New Member
 
Guangjing JU
Join Date: Sep 2023
Posts: 9
Rep Power: 2
Tomjugj is on a distinguished road
Thank you so much! I finally run the testcase normally!
After reconfiguration with:
-Dextra-deps=mpich
the terminal returned: ERROR: Dependency "mpich" not found, tried pkgconfig and cmake
So i sudo apt-get install libmpich-dev, and problem solved.
Again, thank you so much for your reply!
Tomjugj is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 05:53
continuing problem with chtMultiRegion case - need help boffin5 OpenFOAM Running, Solving & CFD 7 May 23, 2023 13:52
Inputs of Riemann Problem in SU2 with Slope Limiters ugurtan666 SU2 0 March 26, 2022 07:32
Problem running movingCylinders case in parallel with foam-extend-3.1 mhkenergy OpenFOAM Running, Solving & CFD 5 March 3, 2017 05:20
Code Saturne mass sources MPI problem Pat84 Main CFD Forum 9 April 21, 2010 08:02


All times are GMT -4. The time now is 13:29.