Subject: Including hdf5.h disables MPI C++ bindings
Package: libhdf5-openmpi-dev
Version: 1.8.9-1~exp3
Severity: normal
As reported in lp:1165504 [1] and discussed in bug 686926 [2],
including hdf5.h from the libhdf5-openmpi-dev package
completely disables the MPI C++ bindings. This leads to
More practically, and more importantly, Octave users who are compiling
extensions from within Octave are yet another step removed from both the
compiler and the HDF5 library. They may not even be aware of HDF5 but
the compilation and linking of their oct-file will be affected.
Mkoctfile
.
Bradley M. Froehle wrote:
The fix for this bug provided in 1.8.9-1~exp2 has cause me a good deal of
headache today.
For me, the issue is triggered as some C++ code containing:
#include hdf5.h // sets OMPI_SKIP_MPICXX 1
#include mpi.h // MPI C++ namespace now is NOT available
Note
I've looked into this bug a bit today and I'd suggest that instead the
`mkoctfile-mpi.diff` patch in src:octave (from bug #598227) be modified to
be something more like:
-: ${XTRA_CXXFLAGS=%OCTAVE_CONF_XTRA_CXXFLAGS%}
+: ${XTRA_CXXFLAGS=-I/usr/include/mpi -DOMPI_SKIP_MPICXX=1
The fix for this bug provided in 1.8.9-1~exp2 has cause me a good deal of
headache today.
For me, the issue is triggered as some C++ code containing:
#include hdf5.h // sets OMPI_SKIP_MPICXX 1
#include mpi.h // MPI C++ namespace now is NOT available
Note that even trying to unset
5 matches
Mail list logo