[Trilinos-Users] Cannot compile trilinos with hdf5 support

Heroux, Michael A maherou at sandia.gov
Thu Jul 28 16:27:34 MDT 2011


Martin,

Just doing a little websurfing, here is a hint that might help:

1. error: ¹H5Pset fapl mpio¹ was not declared in this scope

€ This is a compilation error. The user is trying to build the parallel ver-
sion of Chombo but is not linking against an HDF5 build that has used
--enable-parallel when it was configured

Might this be your situation?

Mike

On 7/28/11 4:55 PM, "Martin Vymazal" <martin.vymazal at vki.ac.be> wrote:

> Dear Trilinos developers,
> 
>   I would like to use Trilinos with hdf5 support. I compiled and
> installed hdf-1.8.6 in my ~/local/hdf5, but I cannot compile trilinos.
> I'm getting this error:
> 
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp: In member function ?void
> EpetraExt::HDF5::Create(std::string)?:
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp:247: error: ?H5Pset_fapl_mpio? was not declared in this
> scope
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp:249: error: ?H5Pset_fapl_mpio? was not declared in this
> scope
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp: In member function ?void EpetraExt::HDF5::Write(const std::string&,
> const Epetra_MultiVector&,
> bool)?:
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp:944: error: ?H5Pset_dxpl_mpio? was not declared in this
> scope
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp: In member function ?void EpetraExt::HDF5::Read(const std::string&,
> Epetra_MultiVector*&, bool, const
> int&)?:
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp:1038: error: ?H5Pset_dxpl_mpio? was not declared in this
> scope
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp: In member function ?void EpetraExt::HDF5::Write(const std::string&,
> const std::string&, int, int, int, const
> void*)?:
> /home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF
> 5.cpp:1583: error: ?H5Pset_dxpl_mpio? was not declared in this
> scope
> 
> I set the path to hdf5 with:
>    -D HDF5_INCLUDE_DIRS:PATH=$HOME/local/hdf5/include \
>    -D HDF5_LIBRARY_DIRS:PATH=$HOME/local/hdf5/lib \
> 
> Looking to CMakeCache.txt, I have:
> 
> TPL_HDF5_INCLUDE_DIRS:PATH=/home/martin/local/hdf5/include
> TPL_HDF5_LIBRARIES:FILEPATH=/home/martin/local/hdf5/lib/libhdf5.so
> 
> which is correct.
> 
> I also did 'grep -iRn H5Pset_dxpl_mpio ./*' in
> /home/martin/local/hdf5. I got this:
> ./include/H5FDmpio.h:53:H5_DLL herr_t H5Pset_dxpl_mpio(hid_t dxpl_id,
> H5FD_mpio_xfer_t xfer_mode);
> 
> I compiled hdf5 with the version 1.6 API. It is strange that the
> trilinos compilation fails, since I used exactly the same cmake
> configuration for trilinos and hdf5 in another machine, where
> everything worked perfectly. Could you please help me?
> 
>   Thank you very much,
> 
>    Martin Vymazal
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users




More information about the Trilinos-Users mailing list