-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from fmalatino/update/workflow
Addition of dace:cpu orchestrated versions of unit tests in workflow and overrides for near-zero errors
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: "Translate test" | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
|
@@ -8,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.8.12] | ||
python: [3.8.12, 3.11.7] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
@@ -32,10 +33,23 @@ jobs: | |
wget https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6ranks_baroclinic.physics.tar.gz | ||
tar -xzvf 8.1.3_c12_6ranks_baroclinic.physics.tar.gz | ||
cd - | ||
- name: Translate Tests | ||
- name: Numpy Translate Test | ||
run: | | ||
pytest \ | ||
-v -s --data_path=./test_data/8.1.3/c12_6ranks_baroclinic/physics \ | ||
--backend=numpy \ | ||
--threshold_overrides_file=./tests/savepoint/translate/overrides/standard.yaml \ | ||
./tests/savepoint | ||
- name: Orchestrated dace:cpu Translate Test | ||
run: | | ||
export FV3_DACEMODE=BuildAndRun | ||
export PACE_FLOAT_PRECISION=64 | ||
export PACE_TEST_N_THRESHOLD_SAMPLES=0 | ||
export OMP_NUM_THREADS=10 | ||
export PACE_LOGLEVEL=Debug | ||
pytest \ | ||
-vvv -x -s --data_path=./test_data/8.1.3/c12_6ranks_baroclinic/physics \ | ||
--backend=dace:cpu \ | ||
--threshold_overrides_file=./tests/savepoint/translate/overrides/standard.yaml \ | ||
./tests/savepoint |
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