Skip to content

Commit

Permalink
update profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
pierric committed Jan 5, 2025
1 parent 10e3a17 commit 6d92c16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 6 additions & 3 deletions profiling/flamegraph-selfplay
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
cargo flamegraph --bin smartchess -- -t trace.json \
-c 'runs/004/tb_logs/chess/version_0/epoch:11-val_loss:3.341.pt' \
--temperature 1.0 --cpuct 2.5 --rollout-num 200
#!/bin/bash

CKPT="${CKPT:-runs/001/tb_logs/chess/version_7/epoch:4-val_loss:4.325.pt}"

cargo flamegraph --bin smartchess -- -t trace.json -c ${CKPT} \
--temperature 1.0 --cpuct 2.5 --rollout-num 200 --num-steps 50
8 changes: 8 additions & 0 deletions profiling/rocprof-selfplay
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CKPT="${CKPT:-runs/000/last.pt}"

rocprof --tool-version 2 -d profiling --plugin perfetto \
--roctx-trace --hip-trace --kernel-trace --hsa-trace \
cargo run --bin smartchess -- -t trace.json -c ${CKPT} \
--temperature 1.0 --cpuct 2.5 --rollout-num 200 --num-steps 10

0 comments on commit 6d92c16

Please sign in to comment.