-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.12 New References for Dimension Scales (#1139) #1574
Conversation
* Enable usage of new-style references with dimension scale APIs * Add API to check if an object ID represents a native connector object * Modified code to use new function H5DSwith_new_ref to determine if new references should be used with Dimension Scales. The new function return TRUE if non-native connector is used or if H5_DIMENSION_SCALES_WITH_NEW_REF varible is define at configure time (--enable-dimension-scales-with-new-ref). Tested on jelly. ToDo: generate testing file on BE system and enable the test; add flag to CMake; test netCDF-4 with the new references. * Adding new test files generated on BE system (hedgehog) created by 32 and 64-bit library. test_ds chokes on test_ds_le_new_ref.h5 on BE system; test passes for test_ds_be_new_ref-32bit.h5 for the 32-bit library and fails for the 64-bit library, and vice versa. I am checking the files for further investigation; but current implementation of the new references is not portable between LE and BE systems, and 32 and 64-bit systems. * Minor fixes for testing issues * Update test_ds.c Enabled broken test; tests pass now. * Update RELEASE.txt Documented new option to use new references with the HDF5 dimension scales APIs (H5DS*). * Update MANIFEST for new 32-bit new-style references test file for H5DS APIs * Update 'dimension scales w/ new-style refs' feature based on review Co-authored-by: Elena <epourmal@hdfgroup.org>
src/H5VL.c
Outdated
* connector object. | ||
* | ||
* Return: Success: TRUE/FALSE | ||
* Failure: FAIL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to fix this! This API call needs to be reworked so it returns herr_t and hbool_t is_native is an out parameter (htri_t is trash and should not be used in new code).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was changed 5 days later. I've pulled that change in, please review again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
H5VLobject_is_native needs to be updated. I will do that over the weekend.
I was under the impression that we weren't planning on bringing these changes back to the support branches. Do we have a reason to support it for 1.12? |
Is it needed for netCDF-4?
…________________________________
From: jhendersonHDF ***@***.***>
Sent: Saturday, April 2, 2022 12:22 PM
To: HDFGroup/hdf5 ***@***.***>
Cc: Larry Knox ***@***.***>; Author ***@***.***>
Subject: Re: [HDFGroup/hdf5] 1.12 New References for Dimension Scales (#1139) (PR #1574)
I was under the impression that we weren't planning on bringing these changes back to the support branches. Do we have a reason to support it for 1.12?
—
Reply to this email directly, view it on GitHub<#1574 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADGMWCWQGZUCD2IKPYA4KC3VDB65HANCNFSM5SKBWXNQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Enable usage of new-style references with dimension scale APIs
Add API to check if an object ID represents a native connector object
Modified code to use new function H5DSwith_new_ref to determine if new references should be used with
Dimension Scales. The new function return TRUE if non-native connector is used or if H5_DIMENSION_SCALES_WITH_NEW_REF
varible is define at configure time (--enable-dimension-scales-with-new-ref).
Tested on jelly.
ToDo: generate testing file on BE system and enable the test; add flag to CMake; test netCDF-4 with the new references.
test_ds chokes on test_ds_le_new_ref.h5 on BE system; test passes for test_ds_be_new_ref-32bit.h5
for the 32-bit library and fails for the 64-bit library, and vice versa. I am checking the files for further
investigation; but current implementation of the new references is not portable between LE and BE systems,
and 32 and 64-bit systems.
Minor fixes for testing issues
Update test_ds.c
Enabled broken test; tests pass now.
Documented new option to use new references with the HDF5 dimension scales APIs (H5DS*).
Update MANIFEST for new 32-bit new-style references test file for H5DS APIs
Update 'dimension scales w/ new-style refs' feature based on review
Co-authored-by: Elena epourmal@hdfgroup.org