[Trilinos-Users] Re : Cannot compile trilinos with hdf5 support
Michel Kern
michel.kern at inria.fr
Thu Jul 28 18:37:08 MDT 2011
Martin,
If you want to use an 1.8 hdf5 with Trilinos, you have to pass the
-DH5_USE_16_API flag to the cmake script. This will enable the old api, provided your hdf5 installation was compiled with both apis.
Details at
http://www.hdfgroup.org/HDF5/doc/RM/APICompatMacros.html
Hope that helps
Michel Kern
Envoy? depuis mon HTC
----- Reply message -----
De : "Martin Vymazal" <martin.vymazal at vki.ac.be>
Pour?: <trilinos-users at software.sandia.gov>
Objet : [Trilinos-Users] Cannot compile trilinos with hdf5 support
Date : jeu., juil. 28, 2011 17:57
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.
_______________________________________________
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