-
Notifications
You must be signed in to change notification settings - Fork 12
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
Potential fix for Arm Linux testing. #583
base: develop
Are you sure you want to change the base?
Conversation
src/grib2_int.h
Outdated
@@ -27,6 +27,9 @@ | |||
|
|||
#include "grib2.h" | |||
|
|||
/** Define is system is Arm Linux. */ | |||
#define IS_ARM_LINUX __aarch64__ &&__linux__ |
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 don't want this define.
Is there a way to detect whatever is happening on ARM and handle it without having platform specific defines?
@edwardhartnett After thinking about this, and looking at the output, it is not writing in accordance with the GRIB2 standard for negative values. So 63116bb despite passing the checks is not correct. Continuing to work on this... |
If this is an acceptable PR, can we issue g2c v2.1.1? |
If we can agree on a fix, we can merge it and do a release. But I don't want to reintroduce machine-specific macros to g2c. So what is the condition on ARM that is being detected here? |
@edwardhartnett the most recent change, f51770c, removes architecture/platform specific defines. In digging deeper, on ARM Linux the default |
OK, that's a lot better. Can we have some testing for this code? Perhaps a test which fails with the old code but succeeds with the new code? |
I am bit confused with this. What do you mean by old code? It would not exist. Do you mean forcing a failure in the tests? |
Potential fix for #560