Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also support OpenMPI installed via apt #19

Open
BenjaminRodenberg opened this issue Mar 4, 2020 · 3 comments
Open

Also support OpenMPI installed via apt #19

BenjaminRodenberg opened this issue Mar 4, 2020 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@BenjaminRodenberg
Copy link
Member

Currently, one has to compile OpenMPI on his own for using it with the MATLAB bindings. The other alternative is using MPICH (see https://github.com/precice/matlab-bindings#restrictions). Note that this requires the user to also build preCICE with the respective MPI implementation. Can we also support OpenMPI installed via apt? This is probably the way most of our users go.

@BenjaminRodenberg BenjaminRodenberg added enhancement New feature or request question Further information is requested labels Mar 4, 2020
@BenjaminRodenberg
Copy link
Member Author

I cannot reproduce this issue anymore. From my perspective this issue has disappeared. Can somebody else confirm this? Then I would suggest closing this issue.

I'm using Ubuntu 20.04 with OpenMPI from apt and preCICE revision precice/precice@cab21ce. I cannot reproduce this behavior anymore and the bindings work without any special precautions.

I've configured the build of preCICE via:

$ cmake -DBUILD_SHARED_LIBS=ON -DPRECICE_MPICommunication=ON ..
-- === CONFIGURATION ===
-- Library version to build: 2.2.0
-- Build configuration: Debug
-- Build shared libraries: ON
-- Target system: Linux-5.4.0-59-generic
-- Host system: Linux-5.4.0-59-generic
-- Library architecture: x86_64-linux-gnu
-- CXX compiler: /usr/bin/c++
-- CXX compiler flags: <empty>
-- CXX linker: /usr/bin/ld
-- Install prefix: /usr/local
-- Source directory: /home/benjamin/precice
-- Binary directory: /home/benjamin/precice/build
-- Configure package generation: ON
-- Install tests/testfiles: OFF
-- Additional CTest MPI Flags: <empty>

-- === ENABLED FEATURES ===
 * MPICommunication, Enables the MPI communication back-end.

   This enables the MPI communication back-end which is highly recommended on multi-node systems.
   See the documentation of the CMake module FindMPI to control its functionality.

   This feature can be enabled/disabled by setting the PRECICE_MPICommunication CMake option.

...

-- === DEPENDENCIES ===
...
-- MPI Version: Open MPI v4.0.3, package: Debian OpenMPI, ident: 4.0.3, repo rev: v4.0.3, Mar 03, 2020
...

then

make -j4
sudo make install

I ran the MATLAB solverdummy (and other test cases) after starting MATLAB via

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 matlab

@DavidVonRueden
Copy link

DavidVonRueden commented Jun 24, 2024

Hello @BenjaminRodenberg
I can confirm that this issue was solved by compiling preCICE from source using the OpenMPI installed via apt on Ubuntu 22.04, using preCICE (precice/precice@b9c0728)
Maybe this was just me, but I initially misunderstood the instructions in the README. I installed preCICE via the Ubuntu system package and then compile OpenMPI from source. This of course didn't fix the issue. Maybe the instructions can be clarified, such that first OpenMPI has to be either installed via apt or compiled from source and then preCICE has to be compiled. But like I said, maybe this is just a me issue...

@precice-bot
Copy link

This issue has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/coupling-crash-readdata-only-long-simulations/2083/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants