[Trilinos-Users] Cannot compile trilinos with hdf5 support

Martin Vymazal martin.vymazal at vki.ac.be
Thu Jul 28 15:55:09 MDT 2011


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_HDF5.cpp: In member function ?void  
EpetraExt::HDF5::Create(std::string)?:
/home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:247: error: ?H5Pset_fapl_mpio? was not declared in this  
scope
/home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF5.cpp:249: error: ?H5Pset_fapl_mpio? was not declared in this  
scope
/home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF5.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_HDF5.cpp:944: error: ?H5Pset_dxpl_mpio? was not declared in this  
scope
/home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF5.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_HDF5.cpp:1038: error: ?H5Pset_dxpl_mpio? was not declared in this  
scope
/home/martin/trilinos-10.6.1-source/packages/epetraext/src/inout/EpetraExt_HDF5.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_HDF5.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.





More information about the Trilinos-Users mailing list