Skip to content

Commit

Permalink
Add reference results and move NP to serial test
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Jan 23, 2025
1 parent 93baf19 commit a70c9cd
Show file tree
Hide file tree
Showing 13 changed files with 18,402 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ add_test(NAME read_write_test COMMAND test-precice-aste WORKING_DIRECTORY "${CM

# Detect and register examples as tests

set(_examples lci_2d lci_3d nn nng_scalar nng_vector mapping_tester replay_mode)
set(_examples lci_2d lci_3d nn nng_scalar nng_vector mapping_tester mapping_tester_serial replay_mode)

foreach(example IN LISTS _examples)
add_test(NAME aste.example.${example}.setup
Expand Down
2 changes: 2 additions & 0 deletions changelog-entries/212.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Changed metis partitioning to use a fixed seed, making it deterministic
- Changed mapping tester to use metis partitioning by default
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The python tools require
- sympy (optional)
- jinja2 (optional)
- scipy (optional)
- polars (optional)

which can be installed directly using pip and the `requirements.txt` file in the repository

Expand Down
2 changes: 2 additions & 0 deletions examples/mapping_tester/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ cd "${TEST_LOCATION}"

# Gather the generated statistics
python3 "${MAPPING_TESTER}"/gatherstats.py --outdir "${TEST_CASE_LOCATION}" --file test-statistics.csv

python3 "${MAPPING_TESTER}"/compare.py reference-statistics.csv test-statistics.csv
4 changes: 2 additions & 2 deletions examples/mapping_tester/setup-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"executor": "cpu",
"executor-options": ""
},
"np": {
"kind": "nearest-projection"
"nn": {
"kind": "nearest-neighbor"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions examples/mapping_tester_serial/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
case/
test-statistics.csv
4 changes: 4 additions & 0 deletions examples/mapping_tester_serial/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

rm -f test-statistics.csv
rm -fr ./case/
Loading

0 comments on commit a70c9cd

Please sign in to comment.