Hi everyone,
I am trying to install NGSolove with openMPI support from source on Ubuntu 18.04.3 LTS. To do so, I ran cmake with following configuration:
cmake
-DCMAKE_BUILD_TYPE:STRING="RELEASE"
-DCMAKE_INSTALL_PREFIX=${NGSUITE}/ngsolve-install ${NGSUITE}/ngsolve-src/
-DCMAKE_CXX_COMPILER:FILEPATH="/usr/bin/mpicxx"
-DCMAKE_C_COMPILER:FILEPATH="/usr/bin/mpicc"
-DCMAKE_CXX_FLAGS="-march=native -O3"
-DCMAKE_C_FLAGS="-march=native -O3"
-DMPI_LIBRARY:FILEPATH="/usr"
-DUSE_MPI=ON
-DUSE_LAPACK=ON
-DLAPACK_DIR:FILEPATH="/usr/lib/x86_64-linux-gnu/lapack"
NGSolve builds fine. However, ‘make install’ produces an error which seems to be related to python and openMPI:
[code]
…
– Up-to-date: /home/johannes/ngsuite/ngsolve-install/lib/python3/dist-packages/ngsolve/TensorProductTools.py
[c3po:14049] mca_base_component_repository_open: unable to open mca_patcher_overwrite: /usr/lib/x86_64-linux-gnu/openmpi/lib/openmpi/mca_patcher_overwrite.so: undefined symbol: mca_patcher_base_patch_t_class (ignored)
[c3po:14049] mca_base_component_repository_open: unable to open mca_shmem_posix: /usr/lib/x86_64-linux-gnu/openmpi/lib/openmpi/mca_shmem_posix.so: undefined symbol: opal_shmem_base_framework (ignored)
[c3po:14049] mca_base_component_repository_open: unable to open mca_shmem_mmap: /usr/lib/x86_64-linux-gnu/openmpi/lib/openmpi/mca_shmem_mmap.so: undefined symbol: opal_show_help (ignored)
[c3po:14049] mca_base_component_repository_open: unable to open mca_shmem_sysv: /usr/lib/x86_64-linux-gnu/openmpi/lib/openmpi/mca_shmem_sysv.so: undefined symbol: opal_show_help (ignored)
It looks like opal_init failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during opal_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
here’s some additional information (which may only be relevant to an
Open MPI developer):
opal_shmem_base_select failed
→ Returned value -1 instead of OPAL_SUCCESS
--------------------------------------------------------------------------[/code]
I already removed all CMake files. Nevertheless, the error persists. I also made sure that there is only one MPI version installed, namely libopenmpi-dev 2.1.1.-8; the files mentioned in the error (e.g., /usr/lib/x86_64-linux-gnu/openmpi/lib/openmpi/mca_patcher_overwrite.so) exist. The python module mpi4py (3.0.3) has been installed using pip3 after the installation of libopenmpi-dev. The strage thing is, that it works if I purge openMPI from the system and install MPICH instead.
Do you have any clue, where this error might stem from?
If you need any more information I am happy to provide them.
Best,
Johannes