Open BenjaminRodenberg opened 4 years ago
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 https://github.com/precice/precice/pull/949/commits/cab21ce52c49242624c78528d069ce0932b2afbe. 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
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 (https://github.com/precice/precice/commit/b9c0728d99c8ab6e7722d1ed4bdf76eb4daf7930) 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...
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
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.