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

Allowing r4 or r8 compilation on a component basis #63

Open
thomas-robinson opened this issue Nov 1, 2023 · 0 comments
Open

Allowing r4 or r8 compilation on a component basis #63

thomas-robinson opened this issue Nov 1, 2023 · 0 comments

Comments

@thomas-robinson
Copy link
Member

The FMS code as of 2023.03 supports mixed-precision modeling where some components can be compiled in r4 and some can be compiled in r8. This compile option is in the mkmf templates in the FFLAGS.

https://github.com/NOAA-GFDL/mkmf/blob/master/templates/ncrc4-intel.mk#L91
https://github.com/NOAA-GFDL/mkmf/blob/master/templates/ncrc5-intel-classic.mk#L92
https://github.com/NOAA-GFDL/mkmf/blob/master/templates/ncrc5-gcc.mk#L84
https://github.com/NOAA-GFDL/mkmf/blob/master/templates/ncrc5-cce.mk#L84

This is inflexible and requires some manual work to compile a mixed precision model. A more flexible option is needed to allow users to decide which precision to compile a model component.

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

No branches or pull requests

1 participant