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

[foam-extend.org] Compilation of Manjaro and MPI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2020, 16:36
Exclamation Compilation of Manjaro and MPI
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 143
Rep Power: 11
EternalSeekerX is on a distinguished road
Dear all,

I have compiled Foam Extend 4.1 on manjaro. When testing the installation it was complaining about not finding the MPI_ARCH_PATH. This was due to it not finding libmpi.so.1. My system has mpi.so in the /usr/lib directory. So What I did was copied the mpi.so and renamed it to libmpi.so.1. Then it was able to pass the installation test. I ran both pitzdaily and motorbike and they ran perfectly.

However upon further investigation, I noticed they didn't run in parallel. So I edited the simplefoam motorbike allrun script and added in two lines:

Code:
runApplication decomposePar
runApplication mpirun -np 6 simpleFoam -parallel
runApplication reconstructPar
And it did run, I was able to visualize in Paraview after creating a temporary .foam file.

However looking at the log I saw this:

Code:
Time = 500

smoothSolver:  Solving for Ux, Initial residual = 0.0006301964406, Final residual = 3.039349977e-05, No Iterations 4
smoothSolver:  Solving for Uy, Initial residual = 0.01171762881, Final residual = 0.0005864078939, No Iterations 4
smoothSolver:  Solving for Uz, Initial residual = 0.01303451675, Final residual = 0.0006378994764, No Iterations 4
GAMG:  Solving for p, Initial residual = 0.04896071583, Final residual = 0.00155753443, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.00598723622, Final residual = 0.0002310773101, No Iterations 2
GAMG:  Solving for p, Initial residual = 0.0009165694989, Final residual = 4.964662388e-05, No Iterations 2
time step continuity errors : sum local = 7.977195636e-06, global = -2.789265382e-07, cumulative = -3.436461243e-05
smoothSolver:  Solving for omega, Initial residual = 0.0002348038736, Final residual = 1.551069998e-05, No Iterations 3
smoothSolver:  Solving for k, Initial residual = 0.002359694439, Final residual = 0.0001658683156, No Iterations 3
[manjaro-vmware:260741] *** Process received signal ***
[manjaro-vmware:260739] *** Process received signal ***
[manjaro-vmware:260739] Signal: Segmentation fault (11)
[manjaro-vmware:260739] Signal code:  (-6)
[manjaro-vmware:260739] Failing at address: 0x3e80003fa83
[manjaro-vmware:260741] Signal: Segmentation fault (11)
[manjaro-vmware:260741] Signal code:  (-6)
[manjaro-vmware:260741] Failing at address: 0x3e80003fa85
[manjaro-vmware:260738] *** Process received signal ***
[manjaro-vmware:260738] Signal: Segmentation fault (11)
[manjaro-vmware:260738] Signal code:  (-6)
[manjaro-vmware:260738] Failing at address: 0x3e80003fa82
[manjaro-vmware:260740] *** Process received signal ***
[manjaro-vmware:260740] Signal: Segmentation fault (11)
[manjaro-vmware:260740] Signal code:  (-6)
[manjaro-vmware:260740] Failing at address: 0x3e80003fa84
[manjaro-vmware:260737] *** Process received signal ***
[manjaro-vmware:260737] Signal: Segmentation fault (11)
[manjaro-vmware:260737] Signal code:  (-6)
[manjaro-vmware:260737] Failing at address: 0x3e80003fa81
ExecutionTime = 708.72 s  ClockTime = 755 s

End

[manjaro-vmware:260736] *** Process received signal ***
[manjaro-vmware:260736] Signal: Segmentation fault (11)
[manjaro-vmware:260736] Signal code:  (-6)
[manjaro-vmware:260736] Failing at address: 0x3e80003fa80
--------------------------------------------------------------------------
mpirun noticed that process rank 3 with PID 260739 on node manjaro-vmware exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------
I wonder if I have misconfigured mpi?

Thanks

Edit 1: It seems like foam-extend cannot link system mpi correctly or is incompatible with the OpenMPI 10 and even MPICH supplied in Manjaro. Attempting to built using MPICH given in ThirdParty.

Edit 2: Decided to use Foam Extend 4.0 and that worked with SYSTEMMPI. No issues when using mpirun to solve for motorbike.

Last edited by EternalSeekerX; September 20, 2020 at 02:04.
EternalSeekerX 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



All times are GMT -4. The time now is 09:07.