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

[OpenFOAM.com] OpenFOAM with Open MPI 5+

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2024, 09:32
Default OpenFOAM with Open MPI 5+
  #1
New Member
 
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 6
Rep Power: 4
PerformanceJonesLLC is on a distinguished road
Open MPI dropped C++ bindings from Version 5, but some OpenFOAM components require these; is there any chance OpenFOAM will adapt, so that it could benefit from Open MPI enhancements?
PerformanceJonesLLC is offline   Reply With Quote

Old   February 15, 2024, 05:22
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by PerformanceJonesLLC View Post
Open MPI dropped C++ bindings from Version 5, but some OpenFOAM components require these; is there any chance OpenFOAM will adapt, so that it could benefit from Open MPI enhancements?
This is truly curious. To my knowledge there are absolutely no OpenFOAM components using C++ bindings for MPI. Everything is wrapped in an opaque layer (UPstream/Pstream) or in an opaque handle (UPstream::Request), each of which uses the C bindings.
Which components have you found??
olesen is offline   Reply With Quote

Old   July 20, 2024, 07:39
Default
  #3
New Member
 
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 6
Rep Power: 4
PerformanceJonesLLC is on a distinguished road
Quote:
Originally Posted by olesen View Post
This is truly curious. To my knowledge there are absolutely no OpenFOAM components using C++ bindings for MPI. Everything is wrapped in an opaque layer (UPstream/Pstream) or in an opaque handle (UPstream::Request), each of which uses the C bindings.
Which components have you found??
The problem turned out to be in config.sh/mpi: in OMPI 5 the names of some tools have changed; with a simple change I was able to build OpenFOAM with OpenMPI 5.0.3.
PerformanceJonesLLC is offline   Reply With Quote

Old   July 22, 2024, 11:40
Default
  #4
New Member
 
Max R. Dechantsreiter
Join Date: Aug 2022
Posts: 6
Rep Power: 4
PerformanceJonesLLC is on a distinguished road
Quote:
Originally Posted by PerformanceJonesLLC View Post
The problem turned out to be in config.sh/mpi: in OMPI 5 the names of some tools have changed; with a simple change I was able to build OpenFOAM with OpenMPI 5.0.3.
KaHIP was a red herring, but despite CMakeLists.txt I found no C++ MPI in it:


> find -name CMakeLists.txt -exec grep CXX {} /dev/null \; | grep MPI_CXX
./parallel/parallel_src/CMakeLists.txt:include_directories(${MPI_CXX_INCLU DE_PATH})
./parallel/parallel_src/CMakeLists.txt:link_libraries(OpenMP::OpenMP_CXX MPI::MPI_CXX)
./parallel/modified_kahip/CMakeLists.txt:include_directories(${MPI_CXX_INCLU DE_PATH})
./CMakeLists.txt: target_include_directories(libkaffpa_parallel PUBLIC ${MPI_CXX_INCLUDE_PATH})
./CMakeLists.txt: target_include_directories(kaffpaE PUBLIC ${MPI_CXX_INCLUDE_PATH})
./CMakeLists.txt: target_link_libraries(kaffpaE ${MPI_CXX_LIBRARIES} ${OpenMP_CXX_LIBRARIES} OpenMP::OpenMP_CXX )



Anyway the problem lay in OpenFOAM source, namely config.sh/mpi as already noted.
PerformanceJonesLLC 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 "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
How to setup a simple OpenFOAM cluster? TommiPLaiho OpenFOAM Installation 3 October 27, 2013 16:15
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50


All times are GMT -4. The time now is 12:06.