Skip to content

Update to AX_FC_REAL8 macro #856

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

Merged
merged 2 commits into from
Apr 16, 2025

Conversation

marshallward
Copy link
Member

@marshallward marshallward commented Mar 17, 2025

This is a refactor of AX_FC_REAL8. The GNU test for -fdefault-real-8 and -fdefault-double-8 is split into two separate tests. The macro was also redesigned to avoid duplication of the test program, and to follow the same pattern as in autoconf's lib/fortran.m4.

The AMD flang compilers require -fdefault-real-8 but not -fdefault-double-8. We now only test for the first flag both before testing for both.

This patch will slightly improve support for AMD flang compilers.

This is a refactor of AX_FC_REAL8.  The GNU test for -f-default-real-8
and -fdefault-double-8 is split into two separate tests.  The macro was
also redesigned to avoid duplication of the test program, and to follow
the same pattern as in autoconf's lib/fortran.m4.

The AMD flang compilers require -fdefault-real-8 but not
-fdefault-double-8.  We now test for the first flag before testing for
both.

This patch will slightly improve support for AMD flang compilers.
@Hallberg-NOAA
Copy link
Member

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/27136.

@Hallberg-NOAA Hallberg-NOAA merged commit 942acdd into NOAA-GFDL:dev/gfdl Apr 16, 2025
51 checks passed
@marshallward marshallward deleted the ac_real8_update branch May 24, 2025 18:07
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.

3 participants