-
Notifications
You must be signed in to change notification settings - Fork 22
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
unit test fails #137
Comments
I can confirm that h5repack gives this error (with 8-bit word size, as needed). I've not patched my h5repack, but presumably one shouldn't have to with recent versions of HDF5--I, too, have 1.14.3 installed. @markcmiller86 Any ideas? |
The patch is only necessary for 1.8. Probably something wrong with the testing logic itself. I will take a look but not this week. |
So, after a quick look, I don't see anything wrong with testing logic. The test is intended to |
Hi Mark, I have the following output from |
So, something has me confused but in Lines 382 to 385 in 092190c
there is a redirection of both Next, it appears to complete the Lines 385 to 389 in 092190c
Instead, it is exiting at the check of the size ratio. So, I think |
It produces the kind of output you might expect, with no warnings or errors. Output attached. |
Could it be that Here's part of the output I'm seeing:
|
Hmm...I think you could be right. In the
What happens for you if you adjust the Makefile to read...
which removes the request to repack |
Well, I think its just |
Same errors as far as I can tell. |
FWIW, the test passes if I leave out |
So, I just tried with |
It should fail the size ratio if you do that. Mine does....
I wonder if it is somehow finding an older version of the plugin filter code somewhere in your path, ld lib var or something? |
BTW...I am working from H5Z-ZFP |
I tried In my case, I'm pretty sure that this is the only version of H5Z-ZFP I have; I just started to interact with this piece of software a few days ago ;) (And yes, I'm also using H5Z-ZFP |
Some potential differences: I'm building H5Z-ZFP using GNU make and AppleClang 15.0.0. I'm using the
|
Hi Mark, I do get one! Please see the attachment |
So my mesh_repack.h5 does not contain any zfp magic numbers ( |
Well, is the |
Thanks. That file appears to be an exact copy of So, the question is, why isn't it applying the compression? The warning messages about not a data type are certainly a clue. I am still trying to get to bottom of it. @lindstro is your mac Intel or Apple chips? |
I am thinking difference in behavior may have to do with how we have respectively compiled HDF5 1.14.3. Can each of you also past your CMake or autoconf command-line for how you configured HDF5? |
No, the path is correct and the plugin is loaded:
I have an Apple M2 Max.
I couldn't get CMake to override the path to zfp (I tried
|
@jhendersonHDF wanted to ask if you could have a looksee here briefly and see if anything looks familiar. It kinda sounds like this HDF forum issue but we're not seg-faulting. Its just like For reference, here is the command that works for me but fails for the other two users here...
|
@markcmiller86 Is it possible that you built a shared library only version of HDF5 while others here have built either a static only version or a static + shared version? This looks suspiciously similar to problems I've seen in the past where using an HDF5 tool which is statically linked to HDF5 along with a dynamically loaded plugin that is linked to the shared version of the library causes two HDF5s to be loaded into memory and results in very odd issues. If an HDF5 build was built with both static and shared, there will be two versions of each tool, e.g. |
@jhendersonHDF thanks for the quick look. I do indeed have shared and static build.
|
Hi Mark, I followed this instruction to build HDF5, and I didn't change anything besides the installation prefix. I do see that I have both |
@lindstro I have intel Mac but I do have an M1 I can try to test on. Also, my 1.0.0 zfp lib by default builds static, |
@markcmiller86 Interesting that your |
I used homebrew to install HDF5.
Evidently it was linked to the static library. |
Ok, so thats a problem. A statically linked tool cannot load a plugin. So, the test cannot be properly executed. So, we should detect that and just fail associated tests. This must be the explanation for failed test here. |
You might also be able to detect if the "-shared" version of a tool exists and use that if available. |
Indeed, the test passes with |
@shaomeng see if this branch, |
@jhendersonHDF thanks for your attention and time...probably saved me a few hours 💪🏻 |
Hi Mark, the new branch still fails, with the same errors. If I manually change the command in |
@markcmiller86 You probably need to check if the static lib is present rather than checking if the shared lib is missing. If static is present at all then the regular named tools should end up linked statically. If the static lib is present you should either skip the test like in that PR or prefer the -shared tool when the static lib is present and the regular tool when it's not. |
That is, I guess you should aim for HDF5_IS_SHARED_ONLY rather than HDF5_IS_STATIC_ONLY |
Ok, thanks for info @jhendersonHDF and @shaomeng. I will return to this next week. Other fires to put out now. |
Something else that really troubles me here is that many of the tests use HDF5 tools ( |
Ok, yeah, I am seeing some issues with test logic.
|
@markcmiller86 I mostly use CMake these days, but as far as I can tell the default in Autotools is to always build both shared and static (same as CMake), but link to the shared library by default if available. I believe the "-shared" tools concept has always been unique to the CMake builds, which complicates things further. When HDFGroup/hdf5#4046 is merged, CMake and Autotools should have identical behavior, but that doesn't really help the current situation. |
I was following the installation steps to compile HDF5, ZFP, and H5Z-ZFP on my system. However, the
make check
fails with a datatype error:(Note: all other tests succeed except for this one. The full
make check
output is attached: h5z-zfp.log).I have HDF5 version 1.14.3, ZFP from the main branch as of 2/24/2024, and H5Z-ZFP from the main branch as of 2/24/2024. I'm not sure if the failed checks are consequential or not.
The text was updated successfully, but these errors were encountered: