-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Weak Scale Test #163
base: develop
Are you sure you want to change the base?
Add Weak Scale Test #163
Changes from all commits
9e2b924
dbebf71
b0af705
4e0e7c5
766d3b1
01c9aca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
set -e -x | ||
|
||
# Get the test location | ||
TEST_LOCATION="$(pwd)" | ||
export TEST_LOCATION | ||
|
||
# The mapping-tester location | ||
WEAK_SCALING_TESTER="${TEST_LOCATION}"/../../tools/mapping-scaling-tester/ | ||
|
||
GENERATOR="${TEST_LOCATION}"/../../tools/mesh-generators/generate_halton_mesh.py | ||
|
||
# The case directory | ||
TEST_CASE_LOCATION="${TEST_LOCATION}"/case | ||
|
||
# Generate the run scripts | ||
python3 "${WEAK_SCALING_TESTER}"/generate_scale_test.py --setup "${TEST_LOCATION}"/setup-test.json --outdir "${TEST_CASE_LOCATION}" --template "${WEAK_SCALING_TESTER}"/config-template.xml | ||
|
||
# Prepare the meshes | ||
python3 "${WEAK_SCALING_TESTER}"/prepare_scale_meshes.py --setup "${TEST_LOCATION}"/setup-test.json --outdir "${TEST_CASE_LOCATION}" --force -g "${GENERATOR}" | ||
export ASTE_A_MPIARGS="" | ||
export ASTE_B_MPIARGS="" | ||
|
||
# Run the actual cases | ||
cd "${TEST_CASE_LOCATION}" && bash ./runall.sh | ||
|
||
# Postprocess the test cases | ||
bash ./postprocessall.sh | ||
|
||
cd "${TEST_LOCATION}" | ||
|
||
# Gather the generated statistics | ||
python3 "${WEAK_SCALING_TESTER}"/gather_stats.py --outdir "${TEST_CASE_LOCATION}" --file test-statistics.csv | ||
|
||
# Plot the results | ||
python3 "${WEAK_SCALING_TESTER}"/prepare_plots.py --file test-statistics.csv --mode weak_scale |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,35 @@ | ||||||||||||||
{ | ||||||||||||||
"general": { | ||||||||||||||
"testlocation": "${TEST_LOCATION}", | ||||||||||||||
"function": "x+y^2+z^3", | ||||||||||||||
"ranks": { | ||||||||||||||
"A": [ | ||||||||||||||
1,2,3,4 | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
], | ||||||||||||||
"B": [ | ||||||||||||||
1,2,3,4 | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
] | ||||||||||||||
}, | ||||||||||||||
"network": "lo0", | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This will only work on some systems. I would recommend to not specify any network here. preCICE has a few decent defaults which should be sufficient here. |
||||||||||||||
"syncmode": false, | ||||||||||||||
"numberofpointsperrank": { | ||||||||||||||
"A": 1000, | ||||||||||||||
"B": 1200 | ||||||||||||||
} | ||||||||||||||
}, | ||||||||||||||
"groups": [ | ||||||||||||||
{ | ||||||||||||||
"mapping": { | ||||||||||||||
"constraints": [ | ||||||||||||||
"consistent" | ||||||||||||||
], | ||||||||||||||
"cases": { | ||||||||||||||
"tps": { | ||||||||||||||
"kind": "rbf-thin-plate-splines", | ||||||||||||||
"options": "use-qr-decomposition=\"1\"" | ||||||||||||||
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is by far the most expensive variant. Which might take too much time.
Suggested change
|
||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
] | ||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it just using default arguments here? Can you pass the arguments here explicitly?