gpu: run a single representative scene per tool by default
glmark2 (terrain) and vkmark (texture) now each run one ~10s scene instead of the full multi-scene sweep, cutting the headed part to about a minute. Scene seconds and the vkmark scene are tunable via GLMARK2_DURATION, VKMARK_DURATION and VKMARK_BENCH.
This commit is contained in:
parent
27753b0aba
commit
8e9fd82e8e
3 changed files with 16 additions and 7 deletions
|
|
@ -39,6 +39,9 @@
|
|||
# CORPUS_URL=... base URL the sample corpora are fetched from
|
||||
# GOVERNOR=powersave CPU governor to pin (default performance); an explicit
|
||||
# value is appended to the tag, e.g. after-powersave-headless
|
||||
# GLMARK2_DURATION=10 seconds for the glmark2 scene (headed part)
|
||||
# VKMARK_DURATION=10 seconds for the vkmark scene (headed part)
|
||||
# VKMARK_BENCH=texture vkmark scene to run (e.g. texture, shading, vertex)
|
||||
#
|
||||
# Run the headless part with a TTY so sudo can prompt for power logging:
|
||||
# ssh -t <target> '~/basic-benchmark/run-benchmarks.sh before headless'
|
||||
|
|
@ -817,16 +820,19 @@ run_headless() {
|
|||
|
||||
run_headed() {
|
||||
section "GPU: glmark2 / vkmark (pinned to ${GPU_PCI:-default})"
|
||||
# One representative scene each by default (fast, comparable). Override the
|
||||
# scene/options with GLMARK2_BENCH / VKMARK_BENCH, or the seconds with
|
||||
# GLMARK2_DURATION / VKMARK_DURATION.
|
||||
phase "glmark2"
|
||||
if have glmark2; then
|
||||
glmark2 -b :duration=30 2>&1 | tail -25 | tee "glmark2-$TAG.txt"
|
||||
glmark2 -b "terrain:duration=${GLMARK2_DURATION:-10}" 2>&1 | tail -25 | tee "glmark2-$TAG.txt"
|
||||
reg_score "glmark2" "$(gpu_score glmark2 "glmark2-$TAG.txt")"
|
||||
else
|
||||
printf 'skip (glmark2 missing) — sudo dnf install -y glmark2\n'
|
||||
fi
|
||||
phase "vkmark"
|
||||
if have vkmark; then
|
||||
vkmark -b :duration=60 2>&1 | tail -30 | tee "vkmark-$TAG.txt"
|
||||
vkmark -b "${VKMARK_BENCH:-texture}:duration=${VKMARK_DURATION:-10}" 2>&1 | tail -30 | tee "vkmark-$TAG.txt"
|
||||
reg_score "vkmark" "$(gpu_score vkmark "vkmark-$TAG.txt")"
|
||||
else
|
||||
printf 'skip (vkmark missing) — sudo dnf install -y vkmark\n'
|
||||
|
|
|
|||
Loading…
Reference in a new issue