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 48df5db
Show file tree
Hide file tree
Showing 15 changed files with 18,409 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
3 changes: 3 additions & 0 deletions examples/mapping_tester/reference-statistics.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
count,abs_min,abs_max,signed_min:,signed_max,median(abs),relative-l2,99th percentile(abs),95th percentile(abs),90th percentile(abs),mapping,constraint,mesh A,mesh B,ranks A,ranks B,globalTime,mapDataTime,initializeTime,computeMappingTime,peakMemA,peakMemB
3458,0.0,0.30692922919422094,-0.30692922919422094,0.24061844202860838,0.04128682075571033,0.07155821185793043,0.19914987149239097,0.14571976813321605,0.12332753716546282,nn,consistent,coarse_mesh,fine_mesh,2,2,426799.0,152.0,247645.0,77724.0,115100.0,122380.0
3458,1.9984014443252818e-15,0.015823902672544188,-0.015823902672544188,0.015021340046327936,0.00040468910963686877,0.0025420451904765258,0.011347271673681693,0.0059278315196862165,0.0037941465905990636,tps,consistent,coarse_mesh,fine_mesh,2,2,999330.0,9689.0,811718.0,4203.0,116504.0,133780.0
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 48df5db

Please sign in to comment.