[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mpi.h vs. hdf5.h
From: |
Juan Pablo Carbajal |
Subject: |
Re: mpi.h vs. hdf5.h |
Date: |
Fri, 24 Apr 2015 12:58:44 +0200 |
On Tue, Mar 4, 2014 at 8:05 PM, c. <address@hidden> wrote:
>
> On 4 Mar 2014, at 17:00, Mike Miller <address@hidden> wrote:
>
>> My workaround is to always build Octave with
>> CPPFLAGS=-I/usr/include/mpi,
>
> I usually do
>
> CXX=mpicxx
>
> instead, which is almost equivalent.
> c
Hi all,
The problem came back in Ubuntu 15.04 none of the previous solutions
work this time.
I have both libraries installed (apparently it is allowed in 15.04)
MPI (version 1.8.13)
/usr/include/hdf5/openmpi/hdf5.h
/usr/lib/openmpi/include/mpi.h
/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.a
/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so
SERIAL
/usr/include/hdf5/serial/hdf5.h
/usr/lib/x86_64-linux-gnu/hdf5/serial/
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a
The solution for configure this time requieres extra folders, since it
seems everythgin has been distributed around
CFLAGS="-I/usr/lib/openmpi/include -I/usr/include/hdf5/openmpi"
CPPFLAGS="-I/usr/lib/openmpi/include -I/usr/include/hdf5/openmpi"
LDFLAGS="-L/usr/lib/x86_64-linux-gnu/hdf5/openmpi/" ./configure
However compilation fails
CXXLD octave-config
../libinterp/.libs/liboctinterp.so: undefined reference to
`ompi_mpi_cxx_op_intercept'
../libinterp/.libs/liboctinterp.so: undefined reference to `MPI::Win::Free()'
../libinterp/.libs/liboctinterp.so: undefined reference to
`MPI::Datatype::Free()'
../libinterp/.libs/liboctinterp.so: undefined reference to `MPI::Comm::Comm()'
collect2: error: ld returned 1 exit status
Makefile:2282: recipe for target 'octave-cli' failed
make[2]: *** [octave-cli] Error 1
make[2]: *** Waiting for unfinished jobs....
../libinterp/.libs/liboctinterp.so: undefined reference to
`ompi_mpi_cxx_op_intercept'
../libinterp/.libs/liboctinterp.so: undefined reference to `MPI::Win::Free()'
../libinterp/.libs/liboctinterp.so: undefined reference to
`MPI::Datatype::Free()'
../libinterp/.libs/liboctinterp.so: undefined reference to `MPI::Comm::Comm()'
collect2: error: ld returned 1 exit status
Makefile:2290: recipe for target 'octave-gui' failed
make[2]: *** [octave-gui] Error 1
make[2]: Leaving directory '/home/juanpi/Downloads/octave-4.0.0-rc3/src'
Makefile:2121: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/juanpi/Downloads/octave-4.0.0-rc3'
Makefile:1984: recipe for target 'all' failed
make: *** [all] Error 2
Suggestions?
- Re: mpi.h vs. hdf5.h,
Juan Pablo Carbajal <=