From 65789235447a53778b175eb7134fe002aace688d Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 13 Nov 2024 18:33:13 -0500 Subject: [PATCH] Faster Phoenix CPU benchmarking (#729) --- .github/workflows/phoenix/bench.sh | 6 +++--- benchmarks/5eq_rk3_weno3_hllc/case.py | 4 ++-- benchmarks/hypo_hll/case.py | 4 ++-- benchmarks/ibm/case.py | 4 ++-- benchmarks/viscous_weno5_sgb_acoustic/case.py | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/phoenix/bench.sh b/.github/workflows/phoenix/bench.sh index a2ef778cd6..4fc99cc1fa 100644 --- a/.github/workflows/phoenix/bench.sh +++ b/.github/workflows/phoenix/bench.sh @@ -1,6 +1,6 @@ #!/bin/bash -n_ranks=4 +n_ranks=12 if [ "$job_device" == "gpu" ]; then n_ranks=$(nvidia-smi -L | wc -l) # number of GPUs on node @@ -9,7 +9,7 @@ if [ "$job_device" == "gpu" ]; then fi if ["$job_device" == "gpu"]; then - ./mfc.sh bench --mem 8 -j $(nproc) -o "$job_slug.yaml" -- -c phoenix $device_opts -n $n_ranks + ./mfc.sh bench --mem 12 -j $(nproc) -o "$job_slug.yaml" -- -c phoenix $device_opts -n $n_ranks else ./mfc.sh bench --mem 1 -j $(nproc) -o "$job_slug.yaml" -- -c phoenix $device_opts -n $n_ranks -fi \ No newline at end of file +fi diff --git a/benchmarks/5eq_rk3_weno3_hllc/case.py b/benchmarks/5eq_rk3_weno3_hllc/case.py index 35540f4f27..e01664d3f5 100644 --- a/benchmarks/5eq_rk3_weno3_hllc/case.py +++ b/benchmarks/5eq_rk3_weno3_hllc/case.py @@ -194,8 +194,8 @@ 'cyl_coord' : 'F', 'dt' : dt, 't_step_start' : 0, - 't_step_stop' : int(60*(95*size + 5)), - 't_step_save' : int(60*(95*size + 5)), + 't_step_stop' : int(30*(95*size + 5)), + 't_step_save' : int(30*(95*size + 5)), # ========================================================== # Simulation Algorithm Parameters ========================== diff --git a/benchmarks/hypo_hll/case.py b/benchmarks/hypo_hll/case.py index 3a44b580f1..a7d72e5b0c 100644 --- a/benchmarks/hypo_hll/case.py +++ b/benchmarks/hypo_hll/case.py @@ -47,8 +47,8 @@ 'p' : Nz, 'dt' : 1e-8, 't_step_start' : 0, - 't_step_stop' : int(60*(95*size + 5)), - 't_step_save' : int(60*(95*size + 5)), + 't_step_stop' : int(30*(95*size + 5)), + 't_step_save' : int(30*(95*size + 5)), # ========================================================== # Simulation Algorithm Parameters ========================== diff --git a/benchmarks/ibm/case.py b/benchmarks/ibm/case.py index 6ce2245ac7..ec182e9c08 100644 --- a/benchmarks/ibm/case.py +++ b/benchmarks/ibm/case.py @@ -51,8 +51,8 @@ 'p' : Nz, 'dt' : mydt, 't_step_start' : 0, - 't_step_stop' : int(40*(95*size + 5)), - 't_step_save' : int(40*(95*size + 5)), + 't_step_stop' : int(20*(95*size + 5)), + 't_step_save' : int(20*(95*size + 5)), # ========================================================== # Simulation Algorithm Parameters ========================== diff --git a/benchmarks/viscous_weno5_sgb_acoustic/case.py b/benchmarks/viscous_weno5_sgb_acoustic/case.py index ccdde880c0..7c194c9497 100644 --- a/benchmarks/viscous_weno5_sgb_acoustic/case.py +++ b/benchmarks/viscous_weno5_sgb_acoustic/case.py @@ -113,8 +113,8 @@ 'p' : Nz, 'dt' : dt, 't_step_start' : 0, - 't_step_stop' : int(30*(25*size + 5)), - 't_step_save' : int(30*(25*size + 5)), + 't_step_stop' : int(15*(25*size + 5)), + 't_step_save' : int(15*(25*size + 5)), # ========================================================== # Simulation Algorithm Parameters ==========================