experiment: add per-gpu workload control

This commit is contained in:
2026-07-20 18:48:22 +08:00
parent a033a72195
commit 809ad9ffef
8 changed files with 330 additions and 7 deletions

View File

@@ -47,9 +47,9 @@ run_mode() {
fi
mapfile -t families < <(
jq -r --argjson prefix "${prefix_mode}" '
jq -r --argjson prefix "${prefix_mode}" --argjson tp "${TP}" '
.cases
| map(select(.prefix_caching == $prefix))
| map(select(.prefix_caching == $prefix and ((.tp // $tp) == $tp)))
| map(.family)
| unique
| .[]
@@ -75,9 +75,9 @@ run_mode() {
traces=()
command=()
mapfile -t traces < <(
jq -r --arg family "${family}" '
jq -r --arg family "${family}" --argjson tp "${TP}" '
.cases
| map(select(.family == $family))
| map(select(.family == $family and ((.tp // $tp) == $tp)))
| sort_by(.global_offered_request_rate)
| .[]
| "\(.family)-rho\(.rho | tostring | gsub("\\."; "p"))=\(.public_csv)"