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

[OpenFOAM.org] CentOS 7 with Open-MPI versions 4.0.0 and 1.6.5 to compile with OpenFOAM 4.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2019, 10:09
Default CentOS 7 with Open-MPI versions 4.0.0 and 1.6.5 to compile with OpenFOAM 4.1
  #1
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
What is the outcome of this? I would really appreciate any help.

I have a similar issue on CentOS 7 with openmpi versions 4.0.0 and 1.6.5 to compile OpenFoam4.1.

Here I described what I did to get rid of the missing ptscotch.H file but this does not help me to use OpenFoam.

Segmentation fault with mpi

I attached my log.make file like you suggested in this thread:

v1606+ Compilation error - ptscotch.h not found

I also had a look at:

ThirdParty-3.0.x

My mpiexec and gcc seem good enough.

Code:
mpiexec --version
mpiexec (OpenRTE) 4.0.0

gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
I could not find tipps on installing OF4.1 for Centos 7 only for Centos 6.8.

https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL


[Moderator note: Moved this line of conversation out of the thread v1606+ Compilation error - ptscotch.h not found ]
Attached Files
File Type: gz log.make.gz (9.6 KB, 1 views)

Last edited by wyldckat; February 27, 2019 at 19:38. Reason: see "Moderator note:"
lukasf is offline   Reply With Quote

Old   February 24, 2019, 19:31
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Open-MPI 4.0.0 is way too recent to be using it with the old versions of OpenFOAM 4.1 and Scotch 6.0.3.

So please first confirm if you were able to build with Open-MPI 1.6.5 or whichever version that comes with CentOS 7.
__________________
wyldckat is offline   Reply With Quote

Old   February 26, 2019, 07:19
Default
  #3
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
Hi Bruno,

thank you for the suggestion.

I am able to build OF4.1 on CentOS 7 with the following Open-MPI Versions:

1.6.5
1.10.7
2.1.5
3.1.3

I cannot build it with

4.0.0.


I have not tried other versions. I was not able to determine the original version that comes with CentOS 7.

There is a problem with OF4.1 built by 3.1.3. Cases which usually run are now crashing.

Code:
[27] --> FOAM FATAL IO ERROR:
[27] wrong token type - expected Scalar, found on line 0 the word 'nan'

[27] file: myPATH/processor27/system/data.solverPerformance.p at line 0.

[27]     From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
[27]     in file lnInclude/Scalar.C at line 93.
[27]
FOAM parallel run exiting
When I source Open-MPI 4.0.0 with the builded OF4.1 by 3.1.3 the cases are running.

Since I do not like running OF build by 3.1.3 and run with 4.0.0 I will use OF4.1 compiled and run (sourced) with Open-MPI 1.10.7.

Last edited by lukasf; February 27, 2019 at 02:35. Reason: 1.6.5, 2.1.5 are working as well
lukasf is offline   Reply With Quote

Old   February 26, 2019, 19:31
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. Open-MPI 3.1.3 is probably a big no-no, given that 3.1.1 and 3.1.2 have a critical bug in ti, as reported here: https://bugs.openfoam.org/view.php?id=3071
  2. Likewise, 2.1.5 is a big NO as well, see the same report...
  3. Open-MPI 1.6.5... that's very strange, because I've used that at the office without problems... even with OpenFOAM 5.x...
  4. It is preferable to use Open-MPI 1.10.7, if you can use it without problems, given that it's the closest version to the one they reported as the version they tested with for OpenFOAM 4: https://github.com/OpenFOAM/ThirdParty-4.x/#openmpi
  5. Open-MPI 4.0.0 is way too much of a new version; the probability of having critical bugs in it are fairly high, given that it's the very first version of a new series. You should only try to use it if you are trying to do some performance tests, in which case you should also use OpenFOAM-dev or at least OpenFOAM 6, both building from source code from the latest git repository.
wyldckat is offline   Reply With Quote

Old   February 27, 2019, 02:40
Default
  #5
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
Hi Bruno,

your post made me try to compile OF4.1 with open-MPI 1.6.5 again.

I was able to compile it with the versions

1.6.5
1.10.7
2.1.5
3.1.3

Hence 1.6.5 is working. I probably sourced the wrong path when I tried to compile OF4.1 with 1.6.5 and 2.1.5.

Thanks!
lukasf is offline   Reply With Quote

Old   October 22, 2020, 22:49
Default
  #6
New Member
 
Prakriti
Join Date: Jun 2018
Posts: 6
Rep Power: 8
Prakriti is on a distinguished road
Hi Lukas,


Could you tell me how you compiled OpenFOAM with your locally compiled OpenMPI on the cluster?



I've been trying to do the same without much success (anymore).
Prakriti is offline   Reply With Quote

Old   October 23, 2020, 04:04
Default
  #7
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
Hi,


which OpenFOAM version on which operating system are we talking about?


Which OpenMPI Versions are available on your system?



Lukas
lukasf 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
[OpenFOAM.org] MPI compiling and version mismatch pki OpenFOAM Installation 7 June 15, 2015 17:21


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