-
Notifications
You must be signed in to change notification settings - Fork 10
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
DRAFT - avoid optimization for setuprad.f90 with Intel #533
DRAFT - avoid optimization for setuprad.f90 with Intel #533
Conversation
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.
Thanks @climbfuji
Just one TODO
placeholder, so this is not forgotten.
Co-authored-by: Rahul Mahajan <[email protected]>
Thanks @climbfuji I will give this a try today. |
@climbfuji I gave this a try and the global_3dvar test failed with a crash on gsi/readfiles.f90:724 when compiled with Intel 2022.3.0 on Hera. Here is the stack trace: 0 0x000000000004d455 ucs_debug_print_backtrace() ???:0 I will keep adding the |
Hmm. Something isn't right with this code. Thanks for testing! |
@climbfuji Unfortunately, adding the directive to read_files.F90 did not fix that crash. On inspection, I noticed that this crash occurs on the last line of the module, according to the backtrace, so I went up another level and tried deoptimizing gesinfo.F90, which also didn't work; same crash. This work is in port_2_i2021. Reading up on the directive itself, setting optimization flags is a 'suggestion' to the compiler and may be ignored without any diagnostic output. So instead, I'm going to modify the CMake file to set |
Thanks for all the tests, @DavidHuber-NOAA. This is very annoying, but if instead of using directives setting cmake compiler flags works, then that's fine! |
@climbfuji Unfortunately, deoptimizing the 3 modules still resulted in a segmentation fault in read_files.f90. I took it another step and deoptimized every module that was called by read_files.f90 and gesinfo.F90, but I am still getting the same seg fault. |
Closing this, since we have a better solution in #447 |
Description
This PR is a suggestion/workaround to address the GSI failures with Intel when compiler optimization is enabled. Please ignore the changes to the Orion LUA module, I needed that to (unsuccessfully) attempt running the regression tests myself.
I got far enough to run into a permissions issue for the
global_3dvar
test, because I am not in grouprstprod
. But I couldn't figure out how to runglobal_T62
, at least this test doesn't exist when I doThis PR may fix #447, but someone needs to test this. @DavidHuber-NOAA?
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
See above
Checklist