omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / DECODE-LAUNCH-COLLAPSE-20261013 / graph-r6-sweep / worktree.diff
| 1 | diff --git a/tests/gpu_decode_graph_test.c b/tests/gpu_decode_graph_test.c |
| 2 | index 7abf27fd..c671acdc 100644 |
| 3 | --- a/tests/gpu_decode_graph_test.c |
| 4 | +++ b/tests/gpu_decode_graph_test.c |
| 5 | @@ -322,11 +322,13 @@ static int chip_run(uint32_t layers, uint32_t vocab, uint32_t reps, int red, int |
| 6 | } |
| 7 | |
| 8 | int main(int argc, char **argv) { |
| 9 | - int host = 0, red = 0, cached = 0; uint32_t reps = 20, layers = 2, vocab = 151936; const char *out = NULL; |
| 10 | + int host = 0, red = 0, cached = 0; uint32_t cta_budget = 0, sh_lane = 0, sh_rows = 0, sh_warps = 0; uint32_t reps = 20, layers = 2, vocab = 151936; const char *out = NULL; |
| 11 | for (int i = 1; i < argc; i++) { |
| 12 | if (strcmp(argv[i], "--host-only") == 0) host = 1; |
| 13 | else if (strcmp(argv[i], "--red") == 0) red = 1; |
| 14 | else if (strcmp(argv[i], "--cached-weights") == 0) cached = 1; |
| 15 | + else if (strcmp(argv[i], "--cta-budget") == 0 && i + 1 < argc) cta_budget = (uint32_t)atoi(argv[++i]); |
| 16 | + else if (strcmp(argv[i], "--shape") == 0 && i + 3 < argc) { sh_lane = (uint32_t)atoi(argv[++i]); sh_rows = (uint32_t)atoi(argv[++i]); sh_warps = (uint32_t)atoi(argv[++i]); } |
| 17 | else if (strcmp(argv[i], "--reps") == 0 && i + 1 < argc) reps = (uint32_t)atoi(argv[++i]); |
| 18 | else if (strcmp(argv[i], "--layers") == 0 && i + 1 < argc) layers = (uint32_t)atoi(argv[++i]); |
| 19 | else if (strcmp(argv[i], "--vocab") == 0 && i + 1 < argc) vocab = (uint32_t)atoi(argv[++i]); |
| 20 | @@ -335,6 +337,9 @@ int main(int argc, char **argv) { |
| 21 | } |
| 22 | if (reps == 0) reps = 1; |
| 23 | if (layers == 0 || layers > 8) layers = 2; |
| 24 | + if (cta_budget) omega_gpu_fp8_set_cta_budget(cta_budget); /* one variable per run (timeline sweeps) */ |
| 25 | + if (sh_lane) omega_gpu_fp8_set_shape(sh_lane, sh_rows, sh_warps); |
| 26 | + printf("fp8 knobs: cta_budget %u shape %u/%u/%u cached %d\n", cta_budget, sh_lane, sh_rows, sh_warps, cached); |
| 27 | int rc = host ? host_only() : chip_run(layers, vocab, reps, red, cached, out); |
| 28 | printf("%s: %d checks, %d failed: %s\n", host ? "host-only" : red ? "chip-red" : "chip", g_checks, g_failed, rc ? "FAIL" : "PASS"); |
| 29 | return rc; |