Skip to content

Commit

Permalink
benchmarks: Update comment and rename max_loc_dofs -> max_loc_nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriabarra committed May 16, 2020
1 parent d7c2022 commit 304dbc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions benchmarks/petsc-bps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ function run_tests()
# -degree <1>: Polynomial degree of tensor product basis
# -qextra <2>: Number of extra quadrature points
# -ceed </cpu/self>: CEED resource specifier
# -cells <10,10,10>: Target number of locally (per rank) owned mesh cells
# -local_nodes <1000>: Target number of locally (per rank) owned nodes

# The variables 'max_dofs_node', and 'max_p' can be set on the command line
# invoking the 'benchmark.sh' script.
local ceed="${ceed:-/cpu/self}"
local common_args=(-ceed $ceed -pc_type none -benchmark)
local max_dofs_node_def=$((3*2**20))
local max_dofs_node=${max_dofs_node:-$max_dofs_node_def}
local max_loc_dofs=$((max_dofs_node/num_proc_node))
local max_loc_nodes=$((max_dofs_node/num_proc_node))
local max_p=${max_p:-8}
local sol_p=
for ((sol_p = 1; sol_p <= max_p; sol_p++)); do
local loc_el=
for ((loc_el = 1; loc_el*sol_p**3 <= max_loc_dofs; loc_el = 2*loc_el)); do
for ((loc_el = 1; loc_el*sol_p**3 <= max_loc_nodes; loc_el = 2*loc_el)); do
local loc_nodes=$((loc_el*sol_p**3))
local all_args=("${common_args[@]}" -degree $sol_p -local_nodes $loc_nodes -problem $bp)
if [ -z "$dry_run" ]; then
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/petsc-bpsraw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ function run_tests()
# -degree <1>: Polynomial degree of tensor product basis
# -qextra <2>: Number of extra quadrature points
# -ceed </cpu/self>: CEED resource specifier
# -local <1000>: Target number of locally (per rank) owned degrees of freedom
# -local <1000>: Target number of locally (per rank) owned nodes

# The variables 'max_dofs_node', and 'max_p' can be set on the command line
# invoking the 'benchmark.sh' script.
local ceed="${ceed:-/cpu/self}"
local common_args=(-ceed $ceed -pc_type none -benchmark)
local max_dofs_node_def=$((3*2**20))
local max_dofs_node=${max_dofs_node:-$max_dofs_node_def}
local max_loc_dofs=$((max_dofs_node/num_proc_node))
local max_loc_nodes=$((max_dofs_node/num_proc_node))
local max_p=${max_p:-8}
local sol_p=
for ((sol_p = 1; sol_p <= max_p; sol_p++)); do
local loc_el=
for ((loc_el = 1; loc_el*sol_p**3 <= max_loc_dofs; loc_el = 2*loc_el)); do
for ((loc_el = 1; loc_el*sol_p**3 <= max_loc_nodes; loc_el = 2*loc_el)); do
local loc_dofs=$((loc_el*sol_p**3))
local all_args=("${common_args[@]}" -degree $sol_p -local $loc_dofs -problem $bp)
if [ -z "$dry_run" ]; then
Expand Down

0 comments on commit 304dbc3

Please sign in to comment.