[FLASH-USERS] Flash I/O Benchmark fails

Klaus Weide klaus at flash.uchicago.edu
Wed Sep 11 15:28:47 EDT 2013


On Wed, 11 Sep 2013, Evan Scannapieco wrote:

> Here's a new issue.
> 
> using hdf5.1.8.11 I can't get flash4 to compile.  This one's a serial 
> version and It was built with the --with-default-api-version=v16 as bob 
> fisher recommended.  Or at least the local computing cluster folks tole 
> me the built it that way.
> 
> But I get this
> 
> DNYB=8 -DNZB=8 -DN_DIM=3 io_h5_attribute.c
> io_h5_attribute.c(48): error #165: too few arguments in function call
>       dsetID = H5Dopen(hFileID, datasetName);
>                                            ^
> 
> io_h5_attribute.c(55): error #165: too few arguments in function call
>   		      attDataspace, H5P_DEFAULT);
>   		                               ^
> 
> io_h5_attribute.c(101): error #165: too few arguments in function call
>       dsetID = H5Dopen(hFileID, datasetName);
>                                            ^
> 
> I guess it's not surprising, as I can't find H5Dopen in the version of hdf5.  I can just find  H5Dopen1 and H5Dopen2…
> 
> 
> /packages/hdf5/1.8.11/openmpi/intel/13.0/include/H5Dpublic.h:H5_DLL hid_t H5Dopen2(hid_t file_id, const char *name, hid_t dapl_id);
> /packages/hdf5/1.8.11/openmpi/intel/13.0/include/H5Dpublic.h:H5_DLL hid_t H5Dopen1(hid_t file_id, const char *name);
> 
> any guidance would be much appreciated!

One one your HDF5 header files should #define H5Dopen.

For example, a quick check shows this in the H5version.h file
in the include directory of an hdf5-1.8.5 installation:

  #if !defined(H5Dopen_vers) || H5Dopen_vers == 2
  #ifndef H5Dopen_vers
  #define H5Dopen_vers 2
  #endif /* H5Dopen_vers */
  #define H5Dopen H5Dopen2
  #elif H5Dopen_vers == 1
  #define H5Dopen H5Dopen1
  #else /* H5Dopen_vers */
  #error "H5Dopen_vers set to invalid value"
  #endif /* H5Dopen_vers */

I seems your compilation command is not pointing to the right include 
directory for HDF5 headers.

Klaus


More information about the flash-users mailing list