Thanks for the info. I didn't encounter any problems but was attempting to help someone debug some hdf5 code.
Sean B. ________________________________ From: Hdf-forum [[email protected]] on behalf of Elena Pourmal [[email protected]] Sent: Monday, September 08, 2014 9:23 PM To: HDF Users Discussion List Cc: Marcus Wagner Subject: Re: [Hdf-forum] HD5F Compatibility Macros (application: -DH5_USE_16_API -DH5Dopen_vers=1) Hi Sean, Fortran C wrappers use the latest versions of the C APIs and they are hardcoded, i.e, instead of H5Dopen we use H5Dopen2 call to open a dataset. The flags you specified do not have any affect on the real function, but just on the macros like H5Dopen. The HDF5 library versions 1.8.* have both functions H5Dopen1 and H5Dopen2 present unless —-disable-deprictated-symbols is specified when the HDF5 library is configured. By default, H5Dopen will be H5Dopen2 unless the specified compiler flags are used or the library is configure with --with-default-api-version=v16. Please see http://www.hdfgroup.org/HDF5/doc/RM/APICompatMacros.html for more details. Did you encounter any problem? Thank you! Elena ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elena Pourmal The HDF Group http://hdfgroup.org 1800 So. Oak St., Suite 203, Champaign IL 61820 217.531.6112 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Sep 8, 2014, at 1:10 PM, Sean Byland <[email protected]<mailto:[email protected]>> wrote: Shouldn’t: ftn selectele.f90 -DH5_USE_16_API -DH5Dopen_vers=1 export HDF5_DEBUG=trace seanb@mork:/lus/scratch/seanb> aprun ./a.out 2>&1 | grep Dopen H5Dopen2(loc=16777216 (file), name=0xe70150, dapl=H5P_DEFAULT) = 83886080 (dset); H5Dopen2(loc=16777217 (file), name=0xe70150, dapl=H5P_DEFAULT) = 83886081 (dset); H5Dopen2(loc=16777216 (file), name=0xf76990, dapl=H5P_DEFAULT) = 83886080 (dset); H5Dopen2(loc=16777217 (file), name=0xf76990, dapl=H5P_DEFAULT) = 83886081 (dset); Force HDF5 to use “H5Dopen1” for HDF5 1.6.x compatibility ? Thanks. Thanks for any help. Sean _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
