-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mahf708/ig/standalone-ghci-oci' (PR #6637)
Adds support for running eamxx standalone testing in the gh/ci containers, for now only single-precision tests due to a mix of issues. Addresses two issues that have already been fixed in the scream fork. Adds flexibility to build cprnc in eamxx. [BFB]
- Loading branch information
Showing
7 changed files
with
113 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: gh-standalone | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
# first, yes to these | ||
- '.github/workflows/eamxx-gh-ci-standalone.yml' | ||
- 'cime_config/machine/config_machines.xml' | ||
- 'components/eamxx/**' | ||
- 'components/homme/**' | ||
# second, no to these | ||
- '!components/eamxx/docs/**' | ||
- '!components/eamxx/mkdocs.yml' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
ci: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
test: | ||
- sp | ||
- opt | ||
- dbg | ||
- fpe | ||
container: | ||
image: ghcr.io/e3sm-project/containers-standalone-ghci:standalone-ghci-0.1.0 | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
submodules: recursive | ||
- | ||
name: standalone | ||
env: | ||
SHELL: sh | ||
run: | | ||
# TODO: get rid of this extra line if we can? | ||
git config --global safe.directory '*' | ||
./components/eamxx/scripts/test-all-scream -m ghci-oci -t ${{ matrix.test }} | ||
- | ||
name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ always() }} | ||
with: | ||
name: ${{ matrix.test }} | ||
path: | | ||
components/eamxx/ctest-build/*/Testing/Temporary/Last*.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
include(${CMAKE_CURRENT_LIST_DIR}/common.cmake) | ||
common_setup() | ||
|
||
set(CMAKE_Fortran_FLAGS "-Wno-maybe-uninitialized -Wno-unused-dummy-argument -fallow-argument-mismatch" CACHE STRING "" FORCE) | ||
set(CMAKE_CXX_FLAGS "-fvisibility-inlines-hidden -fmessage-length=0 -Wno-use-after-free -Wno-unused-variable -Wno-maybe-uninitialized" CACHE STRING "" FORCE) | ||
|
||
# TODO: figure out a better way to handle this, e.g., | ||
# TODO: --map-by ppr:1:node:pe=1 doesn't work with mpich, | ||
# TODO: but -map-by core:1:numa:hwthread=1 may work well? | ||
# TODO: this will need to be handled in EKAT at some point | ||
set(EKAT_MPI_NP_FLAG "-np" CACHE STRING "-np") | ||
|
||
# TODO: hack in place to get eamxx to recognize CPRNC | ||
# TODO: See note in BuildCprnc.cmake... | ||
set(ENV{CCSM_CPRNC} "/usr/local/packages/bin/cprnc") |
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