...
- Add your machine to <ACME>/scripts/ccsm_utils/Machines/config_machines.xml
- The easiest approach is probably to copy the configuration for some other machine and then replace all the values
- Most of the values should be obvious. You can look at the "userdefined" block to see which items are required and to see documentation on each item.
- Add compiler-specific information for each compiler supported by your machine to <ACME>/scripts/ccsm_utils/Machines/config_compilers.xml
- Here, for each compiler you want to support, you'll need to create a block <compiler COMPILER="<toolset>" MACH="<machine>">
- This block will inherit the properties of the primary block for that toolset and allow you to add/override values for your machine.
- The most common thing you'll need to do is add link flags with the ADD_SLIBS item.
- You may also need to define NETCDF_PATH and PNETCDF_PATH
- Add environment settings for your machine by creating this file: <ACME>/scripts/ccsm_utils/Machines/env_mach_specific.<machine>
- This is a csh script that, once sourced, should setup your environment for running ACME
- Common actions here are loading modules, setting PATH and LD_LIBRARY_PATH
- You may need indirection in this file if your machine supports multiple compilers, e.g: if ($COMPILER == "intel") then; module load intel; else; module load gcc; endif
- Add batch settings for your machine by creating this file: <ACME>/scripts/ccsm_utils/Machines/mkbatch.<machine>
- It will be much easier to start by copying mkbatch.userdefined and then editing
- Machines with similar batch systems should serve a good example of what to put in your file
- Now add tests for your machine, starting with the acme_developer tests
- Add <ACME>/scripts/acme to your PATH
- Cd to <ACME>/scripts/ccsm_utils/Testlistxml
- Run: update_acme_tests acme_developer ./testlist.xml -p <machine>,<compiler>
- Now lets make sure the acme_developer tests pass, for your first run of any test, you'll need to generate baselines, all subsequent runs should compare against these baselines
- cd <ACME>/scripts
- ./create_test -xml_category acme_developer -xml_mach <machine> -xml_compiler <compiler> -testroot <any-path> -project <batch project> -generate <some-name-for-these-baselines>
- cd <testroot>
- <ACME>/scripts/acme/wait_for_tests */TestStatus
- Note: The wait_for_tests script requires a minimum python version number of 2.7.
- All tests should pass
Adding a new test
...