-
Notifications
You must be signed in to change notification settings - Fork 219
config_build migration guide
Sean Patrick Santos edited this page Aug 26, 2016
·
3 revisions
- Clean up any bugs in
config_compilers.xml, e.g. bad XML, misspelled tags. When processing the CESM file, there were a few variables that should not have been in there (PIO_TYPENAME, andADD_CPPDEFSwas misspelled asADD_CPPFLAGSin some places). - Run
utils/perl5lib/compilers_translation_tool.plon theconfig_compilers.xmlfile, and usexmllintto make sure that the output matches theconfig_buildschema. The schema is located atcime_config/xml_schemas/config_build.xsd. - Do as much BFB testing as reasonably possible, because we want to know if the compiler flags have changed from all of the above.
- Macros generation can be switched from
config_compilerstoconfig_buildby settingCIME_USE_CONFIG_BUILD=TRUEin the environment. - Note that
<var>tags may need to be replaced with<env>tags, or vice versa, depending on whether a variable is intended to be used from the environment or from elsewhere inconfig_build. - Note also that a generic setting that is overridden for a specific machine and
MPILIBvalue needs to be overridden for allMPILIBvalues. E.g. on yellowstone,SCCis set to the same value asMPICCforMPILIB="mpich2". Because this setting "hides" more generic settings, this means thatSCChas to be set toifortforMPILIB="mpi-serial".
- Macros generation can be switched from
- Fix the comments in the output
config_buildfile (they are likely to be in the wrong place, or possibly not correct at all). - Remove the
config_compilers.xml, and remove theCOMPILERS_SPEC_FILEentry fromconfig_files.xml.