Skip to content

Commit

Permalink
Faster Phoenix CPU benchmarking (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryngelson authored Nov 13, 2024
1 parent b41386d commit 6578923
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/phoenix/bench.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
fi
4 changes: 2 additions & 2 deletions benchmarks/5eq_rk3_weno3_hllc/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==========================
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/hypo_hll/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==========================
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/ibm/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==========================
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/viscous_weno5_sgb_acoustic/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==========================
Expand Down

0 comments on commit 6578923

Please sign in to comment.