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

mixed precision exchange #1341

Merged
merged 56 commits into from
Aug 30, 2023
Merged

mixed precision exchange #1341

merged 56 commits into from
Aug 30, 2023

Conversation

mcallic2
Copy link
Contributor

@mcallic2 mcallic2 commented Aug 17, 2023

Description
This pr includes changes to add mixed precision capabilities, all real values and math will stay in 64bit precision
This also changes variable declarations to be more aligned

Fixes # (issue)

How Has This Been Tested?
autotools with gcc/13.1.0, netcdf/4.9.2, mpich/4.1.2, hdf5/1.14.1-2, libyaml/0.2.5
and with oneapi/2023.2, compiler-rt/2023.2.1, compiler/2023.2.1, hdf5/1.14.1-2, libyaml/0.2.5,
tbb/2021.10.0, oclfpga/2023.2.1, mpi/2021.10.0, netcdf/4.9.2

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

J-Lentz and others added 30 commits February 1, 2023 08:28
* fix: fms2 io performance update for domain_reads (NOAA-GFDL#1226)

* fix: fms2 io performance update for compressed writes (NOAA-GFDL#1227)

* chore: build/log updates for patch (NOAA-GFDL#1247)

Co-authored-by: uramirez8707 <[email protected]>
Co-authored-by: rem1776 <[email protected]>
…re, and fms_mod (NOAA-GFDL#1239) (NOAA-GFDL#1258)

* feat: mixed precision axis_utils2 (NOAA-GFDL#1104)

* feat: mixed precision fms_mod (NOAA-GFDL#1147)

* feat: horiz interp mixed precision (NOAA-GFDL#1067)

* mixed precision sat_vapor_pressure  (NOAA-GFDL#1095)

* feat: add mixed precision axis_utils unit tests (NOAA-GFDL#1172)

* fix: move type definitions to before first usage to fix nvhpc bug (NOAA-GFDL#1187)

* fix: change allocatable type for intel errors (NOAA-GFDL#1221)

Co-authored-by: Caitlyn McAllister <[email protected]>
Co-authored-by: Jesse Lentz <[email protected]>
Co-authored-by: MiKyung Lee <[email protected]>
…1064)

BREAKING CHANGE: This commit removes mpp_io_mod and fms_io_mod, along with other routines that use the modules, from default compilation. The -Duse_deprecated_io CPP flag or --enable-deprecated-io configure time flag can be used to enable their compilation.
@mlee03
Copy link
Contributor

mlee03 commented Aug 25, 2023

@mcallic2 could you merge in mixedmode?

@mcallic2
Copy link
Contributor Author

@mlee03 I merged in mixedmode, fingers crossed I did it correctly lol

@@ -1,37 +0,0 @@
name: Build libFMS test with autotools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcallic2 could you merge in mixedmode one last time?

@mcallic2
Copy link
Contributor Author

@mlee03 mixedmode merged again, its a miracle!

@rem1776 rem1776 merged commit 0d0f604 into NOAA-GFDL:mixedmode Aug 30, 2023
19 checks passed
rem1776 added a commit that referenced this pull request Sep 20, 2023
BREAKING CHANGE: In coupler_types.F90,  `coupler_nd_field_type` and `coupler_nd_values_type` have been renamed to indicate real kind value: `coupler_nd_real4/8_field_type` and `coupler_nd_real4/8_values_type`. The `bc` field within `coupler_nd_bc_type` was modified to use r8_kind within the value and field types, and an additional field added `bc_r4` to use r4_kind values.

Includes:

* feat: eliminate use of real numbers for mixed precision in `block_control` (#1195)

* feat: mixed precision field_manager  (#1205)

* feat: mixed precision random_numbers_mod (#1191)

* feat: mixed precision time_manager reals to r8 and clean up (#1196)

* feat: mixed Precision tracer_manager  (#1212)

* Mixed precision monin_obukhov (#1116)

* Mixed precision: `monin_obukhov` unit tests (#1272)

* mixed-precision diag_integral_mod  (#1217)

* mixed precision time_interp (#1252)

* mixed precision interpolator_mod  (#1305)

* Mixed precision astronomy (#1092)

* Mixed precision `data_override_mod` (#1323)

* mixed precision exchange (#1341)

* coupler mixed precision (#1353)

* Mixed precision topography_mod (#1250)

---------

Co-authored-by: rem1776 <[email protected]>
Co-authored-by: MiKyung Lee <[email protected]>
Co-authored-by: mlee03 <[email protected]>
Co-authored-by: Caitlyn McAllister <[email protected]>
Co-authored-by: Jesse Lentz <[email protected]>
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.