Skip to content
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

ci: use -Doptimization=1 for arm mac test and release #1827

Merged
merged 2 commits into from
May 20, 2024

Conversation

wpbonelli
Copy link
Contributor

@wpbonelli wpbonelli commented May 19, 2024

On rectangular grids, the generalized particle tracking method can find itself in an endless loop on macOS 14 compiled with gfortran with optimization=2, confirmed with gfortran 11-14.

It's difficult to say where things are going wrong since on ARM macs neither gdb nor lldb can be used so we are stuck with print debugging. An architecture/compiler problem seems plausible since we'd presumably see the same behavior on other platforms with opt=2 if it were our bug, but I'm not sure.

This should not occur typically since rectangular cells are detected and solved with Pollock's method, but we use dev_forceternary in test_prt_disv1.py to check that the generalized method reduces to Pollock's. The test has been hanging in CI recently — we might have caught it sooner but there was a separate setup-fortran issue which concealed this one at first.

While it might be safe to release with optimization=2 (with the assumption developers are the only ones using dev options) I don't think we can be sure the same or similar issues could not affect other model grids. So I think we should drop the optimization level pending more information.

@wpbonelli wpbonelli marked this pull request as ready for review May 20, 2024 01:25
@wpbonelli wpbonelli merged commit 4c6deb1 into MODFLOW-USGS:develop May 20, 2024
18 checks passed
@wpbonelli wpbonelli deleted the macos-14-gcc-opt branch May 20, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant