Skip to content

Commit

Permalink
Fix strong/weak scaling test plan for Avon
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundGoodman committed Feb 23, 2024
1 parent 77691fb commit 531be38
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [ ] Default groups for executables
- [ ] Optional key to disable test benches in YAML
- [ ] Optional extras
- [ ] dry run flag
- [x] Argument parsing from the command line
- [ ] Unit tests
- [ ] Documentations
Expand Down
1 change: 1 addition & 0 deletions src/hpc_multibench/yaml_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def run(self) -> None:
for bench_name, bench in self.benches.items():
for run in bench.get_runs(bench_name, self.run_configurations):
print(run)
run.run()
# Run the configurations with `run.run()`

def analyse(self) -> None:
Expand Down
14 changes: 10 additions & 4 deletions yaml_examples/avon/strong_weak_scaling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ run_configurations:
"cpp-mpi":
sbatch_config:
"nodes": 1
"ntasks-per-node": 16
"cpus-per-task": 2
"mem-per-cpu": 3700
module_loads:
Expand All @@ -16,6 +17,7 @@ run_configurations:
"cpp-hybrid":
sbatch_config:
"nodes": 1
"ntasks-per-node": 16
"cpus-per-task": 2
"mem-per-cpu": 3700
module_loads:
Expand All @@ -31,6 +33,7 @@ run_configurations:
benches:
"strong-scaling":
run_configurations:
# - "cpp-mpi"
- "cpp-hybrid"
matrix:
[args, run_command]:
Expand All @@ -39,8 +42,8 @@ benches:
- ["64 64 256", "mpirun -np 4 ./test_HPCCG"]
- ["64 64 128", "mpirun -np 8 ./test_HPCCG"]
- ["64 64 64", "mpirun -np 16 ./test_HPCCG"]
- ["64 64 32", "mpirun -np 32 ./test_HPCCG"]
- ["64 64 16", "mpirun -np 64 ./test_HPCCG"]
# - ["64 64 32", "mpirun -np 32 ./test_HPCCG"] # Exceeds Avon's resource capacity...
# - ["64 64 16", "mpirun -np 64 ./test_HPCCG"]
analysis:
metrics:
"Mesh x size": "nx: (\\d+)"
Expand All @@ -64,16 +67,19 @@ benches:

"weak-scaling":
run_configurations:
# - "cpp-mpi"
- "cpp-hybrid"
matrix:
args:
- "64 64 64"
run_command:
- "mpirun -np 1 ./test_HPCCG"
- "mpirun -np 2 ./test_HPCCG"
- "mpirun -np 4 ./test_HPCCG"
- "mpirun -np 8 ./test_HPCCG"
- "mpirun -np 16 ./test_HPCCG"
- "mpirun -np 32 ./test_HPCCG"
- "mpirun -np 64 ./test_HPCCG"
# - "mpirun -np 32 ./test_HPCCG" # Exceeds Avon's resource capacity...
# - "mpirun -np 64 ./test_HPCCG"
analysis:
metrics:
"Mesh x size": "nx: (\\d+)"
Expand Down

0 comments on commit 531be38

Please sign in to comment.