[MOAB-dev] r4850 - in MOAB/trunk/src: io parallel

Iulian Grindeanu iulian at mcs.anl.gov
Thu May 19 21:06:17 CDT 2011


hello,
I am getting build errors for mpi build. serial build is fine.

Maybe we need another version of hdf5 files? We have 1.8.3 version on mcs machines.
where is H5S_seloper_t defined?

Iulian

569c569
<     dbgOut.print(1,"HDF5 library supports H5Sselect_hyperlsab with H5S_SELECT_APPEND"\n);
---
>     dbgOut.print(1,"HDF5 library supports H5Sselect_hyperlsab with H5S_SELECT_APPEND\n");

In file included from WriteHDF5Parallel.cpp:25:
WriteHDF5Parallel.hpp:255: error: ‘H5S_seloper_t’ does not name a type
WriteHDF5Parallel.cpp: In constructor ‘moab::WriteHDF5Parallel::WriteHDF5Parallel(moab::Interface*)’:
WriteHDF5Parallel.cpp:316: error: class ‘moab::WriteHDF5Parallel’ does not have any field named ‘hslabOp’
WriteHDF5Parallel.cpp: In member function ‘virtual moab::ErrorCode moab::WriteHDF5Parallel::parallel_create_file(const char*, bool, const std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, moab::TagInfo* const*, int, int, int, double*)’:
WriteHDF5Parallel.cpp:570: error: ‘hslabOp’ was not declared in this scope
WriteHDF5Parallel.cpp: In member function ‘virtual moab::ErrorCode moab::WriteHDF5Parallel::write_shared_set_descriptions(hid_t, moab::IODebugTrack*)’:
WriteHDF5Parallel.cpp:2367: error: ‘hslabOp’ was not declared in this scope
WriteHDF5Parallel.cpp: In member function ‘moab::ErrorCode moab::WriteHDF5Parallel::write_shared_set_data(hid_t, moab::WriteUtilIface::EntityListType, moab::IODebugTrack*)’:
WriteHDF5Parallel.cpp:2448: error: ‘hslabOp’ was not declared in this scope
make[5]: *** [WriteHDF5Parallel.lo] Error 1
make[5]: Leaving directory `/nfs/mcs-homes129/iulian/cub12/MOAB/src/parallel'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/nfs/mcs-homes129/iulian/cub12/MOAB/src/parallel'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/nfs/mcs-homes129/iulian/cub12/MOAB/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/nfs/mcs-homes129/iulian/cub12/MOAB/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/nfs/mcs-homes129/iulian/cub12/MOAB'
make: *** [all] Error 2
iulian-desktop~/cub12/MOAB> 


----- Original Message -----
> Author: kraftche
> Date: 2011-05-19 15:15:31 -0500 (Thu, 19 May 2011)
> New Revision: 4850
> 
> Added:
> MOAB/trunk/src/io/HDF5Common.cpp
> MOAB/trunk/src/io/HDF5Common.hpp
> Modified:
> MOAB/trunk/src/io/Makefile.am
> MOAB/trunk/src/io/ReadHDF5.cpp
> MOAB/trunk/src/io/ReadHDF5.hpp
> MOAB/trunk/src/io/WriteHDF5.hpp
> MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
> MOAB/trunk/src/parallel/WriteHDF5Parallel.hpp
> Log:
> auto-detect application of HDF5 hyperslab append hack
> 
> Added: MOAB/trunk/src/io/HDF5Common.cpp
> ===================================================================
> --- MOAB/trunk/src/io/HDF5Common.cpp (rev 0)
> +++ MOAB/trunk/src/io/HDF5Common.cpp 2011-05-19 20:15:31 UTC (rev
> 4850)
> @@ -0,0 +1,42 @@
> +#include <HDF5Common.hpp>
> +#include <H5Spublic.h>
> +#include <assert.h>
> +
> +namespace moab {
> +
> +bool HDF5_can_append_hyperslabs()
> +{
> + hsize_t dim = 100;
> + hid_t space = H5Screate_simple( 1, &dim, NULL );
> + bool result = false;
> +
> + HDF5_Error_Func_Type fptr = 0;
> + void* fdata = 0;
> +#if defined(H5Eget_auto_vers) && H5Eget_auto_vers > 1
> + if (0 <= H5Eget_auto( H5E_DEFAULT, &fptr, &fdata ))
> + H5Eset_auto( H5E_DEFAULT, 0, 0 );
> +#else
> + if (0 <= H5Eget_auto( &fptr, &fdata ))
> + H5Eset_auto( 0, 0 );
> +#endif
> +
> +
> + hsize_t start = 1, count = 5;
> + H5Sselect_hyperslab( space, H5S_SELECT_SET, &start, 0, &count, 0 );
> + start = 20;
> + if (0 <= H5Sselect_hyperslab( space, H5S_SELECT_APPEND, &start, 0,
> &count, 0 ))
> + result = true;
> +
> + if (fptr) {
> +#if defined(H5Eset_auto_vers) && H5Eset_auto_vers > 1
> + H5Eset_auto( H5E_DEFAULT, fptr, fdata );
> +#else
> + H5Eset_auto( fptr, fdata );
> +#endif
> + }
> + H5Sclose( space );
> +
> + return result;
> +}
> +
> +}
> 
> Added: MOAB/trunk/src/io/HDF5Common.hpp
> ===================================================================
> --- MOAB/trunk/src/io/HDF5Common.hpp (rev 0)


More information about the moab-dev mailing list