class v5: the pod bench's run script (proto-newpow/class-v5/run.sh: both packs, two passes, 20-s power windows)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
6f7f71f0d4
commit
9d40749c09
1 changed files with 18 additions and 0 deletions
18
proto-newpow/class-v5/run.sh
Executable file
18
proto-newpow/class-v5/run.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
# Class v5 against class v4 on one card (docs/design/class-v5-stored-state.md section 7). Run in proto-newpow/class-v5
|
||||
# on the pod with the two exported packs beside it: packs/v4-genesis (control) and packs/v5-genesis (leaves.bin inside).
|
||||
# bash run.sh [sm_89] > run.log 2>&1
|
||||
set -u
|
||||
ARCH=${1:-sm_89}
|
||||
export PATH=/usr/local/cuda/bin:$PATH
|
||||
nvidia-smi --query-gpu=name,driver_version,power.limit --format=csv,noheader
|
||||
for pack in v4-genesis v5-genesis; do
|
||||
( cd packs/$pack && nvcc -O3 -std=c++17 -arch=$ARCH -Xcompiler -pthread -I. -o bench ../../bench.cu kernel.cu 2>&1 | grep -v "^$" ; echo "nvcc $pack rc ${PIPESTATUS[0]}" )
|
||||
done
|
||||
for pass in 1 2; do
|
||||
for pack in v4-genesis v5-genesis; do
|
||||
echo "=== pass $pass $pack $(date -u +%H:%M:%SZ)"
|
||||
( cd packs/$pack && ./bench --batches 10 --power-seconds 20 )
|
||||
done
|
||||
done
|
||||
echo "=== done $(date -u +%H:%M:%SZ)"
|
||||
Loading…
Reference in a new issue