forked from E3SM-Project/E3SM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'brhillman/mmf/integrate-rrtmgpxx-new' (PR E3SM-Project#…
…4585) Enable using the C++ back end of RRTMGP for both E3SM and E3SM-MMF. The C++ code uses YAKL to enable running on CPU or GPU with the same codebase. Maintains the ability to run the F90 back end as well (remains the default). Building with the C++ version is enabled by adding -rrtmgpxx to CAM_CONFIG_OPTS in env_build.xml. Note that this is in addition to using the -rad rrtmgp option. The two flags are required because -rad rrtmgp sets much of the logic that determines input data and settings in configure and build-namelist, which we do not want to duplicate just because we are running the C++ back end instead of the F90 back end. A testmod (eam-rrtmgpxx) is also added so that RRTMGPXX can be built via create_test without any user interaction. Also updates both the YAKL and RRTMGP submodules. Believe it or not, this is BFB. [BFB] * brhillman/mmf/integrate-rrtmgpxx-new: (71 commits) Explicitly use pool allocator for ESMT test Make sure rrtmgp_interface gets netcdf includes Only copy to/from device as needed Upgrading to new YAKL with a new pool allocator that uses the avilable space more efficiently and turns off the pool for targets without a separate memory address space. Add RRTMGPXX test to E3SM integration Make RRTMGPXX default for all MMF compsets Removed unused commented out code Revert to RRTMGP I/O Update to latest RRTMGP master after rrtmgp_const fix Add radiation_final for CRM rrtmg Remove netcdf-cxx4 from submodules Add radiation_final to rrtmg interfaces Removing unused declarations, and changing rrtmgp interface build system to use the new YAKL target-based approach Changing const.h to rrtmgp_const.h for rrtmgpxx Getting rid of fast math in DEBUG CUDA_FLAGS, and adding -g to DEBUG CUDA_FLAGS Update to latest RRTMGP master with bugfix Adding debug flags to CXXFLAGS for summit+gnu Wrapping data in host Arrays, then copying to device, then copying back at the end; for SW and LW Moving to latest YAKL, which no longer fails upon multiple calls to yakl::initialize and yakl::finalize Fix CUDA_FLAGS for DEBUG=TRUE ...
- Loading branch information
Showing
53 changed files
with
2,096 additions
and
1,549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
components/eam/cime_config/testdefs/testmods_dirs/eam/mmf_use_ESMT/shell_commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
./xmlchange --append -id CAM_CONFIG_OPTS -val " -cppdefs ' -DMMF_ESMT -DMMF_USE_ESMT ' " | ||
./xmlchange --append -id CAM_CONFIG_OPTS -val " -cppdefs ' -DMMF_ESMT -DMMF_USE_ESMT -DYAKL_SEPARATE_MEMORY_SPACE ' " |
2 changes: 2 additions & 0 deletions
2
components/eam/cime_config/testdefs/testmods_dirs/eam/rrtmgpxx/shell_commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
./xmlchange --append CAM_CONFIG_OPTS='-rad rrtmgp -rrtmgpxx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.