-
Notifications
You must be signed in to change notification settings - Fork 136
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 failures with gcc + O2 optimization #1276
Comments
are the cray pointers in mpp_scatter/mpp_gather? |
@uramirez8707 Yeah they are:
|
mpp nesting test is fixed in PR #1294 |
8 tasks
Everything else is fixed by PR #1312 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Some unit test that are passing gnu normally are failing when compiling with prod flags:
test_fms2_io(all)
test_io_with_mask
test_mpp_nesting(all)
horiz_interp(bicubic new)
To Reproduce
add
-O2 -fno-expensive-optimizations
to your compiler flags for gccExpected behavior
not fail
System Environment
amd box
Additional context
Some (mainly fms2_io) may be related to gcc's handling of cray pointers. The errors are coming from cray pointer assignments using the non-standard
LOC
intrinsic for the gather and scatter routines.mpp_nesting seems to fail when trying to deallocate a pointer from a derived type (nest_domain_type%nest_level).
The horiz_interp failure is from the mixed precision update, I've seen similar errors trying to access its sub-type's field.
The text was updated successfully, but these errors were encountered: