Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/evidence/q38-graph-chip-20261018T1547Z/worktree.diff # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / evidence / q38-graph-chip-20261018T1547Z / worktree.diff` 47 lines ยท 2998 bytes Raw Blame History 1 diff --git a/Makefile b/Makefile 2 index `e2b958d7`..`00d8968d` 100644 3 --- a/Makefile 4 +++ b/Makefile 5 @@ -46,6 +46,8 @@ SRCS += src/omega_blackwell_codegen_gdn.c src/omega_gpu_gdn_api.c 6 SRCS += src/omega_gpu_cmdlist.c src/omega_blackwell_codegen_dec.c 7 SRCS += src/omega_gpu_mem_cached.c 8 SRCS += src/omega_gpu_decode_graph.c 9 +# sc #642 (2026-10-18): one Qwen3.8-27B decode token as one command list (GDN + hd256 attention layers, dense MLP) 10 +SRCS += src/omega_gpu_q38_graph.c 11 # OWN-30B (2026-10-13): bf16 streaming GEMV for the lm_head (omega_gpu_bf16_gemv_api.h), new files only 12 SRCS += src/omega_blackwell_codegen_bf16.c src/omega_gpu_bf16_gemv_api.c 13 # OWN-30B prefill (2026-10-13): FP8 grouped GEMM, each expert streamed once per pass (omega_gpu_fp8gemm_api.h), new files only 14 @@ -2645,3 +2647,11 @@ $(GPU_LAUNCH_COST_TEST): tests/gpu_launch_cost_test.c src/omega_gpu_fp8_api.h sr 15 GPU_L2_REUSE_TEST = $(OUT_DIR)/gpu_l2_reuse_test 16 $(GPU_L2_REUSE_TEST): tests/gpu_l2_reuse_test.c src/omega_gpu_fp8_api.h src/omega_gpu_cmdlist.h $(OUT_DIR)/libomega_gpu.a 17 $(CC) $(CFLAGS) -ffp-contract=off -o $@ tests/gpu_l2_reuse_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm 18 + 19 +# sc #642 (2026-10-18): Qwen3.8-27B decode graph (one token = one command list), chip test vs the APIs one call at a time 20 +.PHONY: test-gpu-q38-graph-host 21 +GPU_Q38_GRAPH_TEST = $(OUT_DIR)/gpu_q38_graph_test 22 +$(GPU_Q38_GRAPH_TEST): tests/gpu_q38_graph_test.c src/omega_gpu_q38_graph.h $(OUT_DIR)/libomega_gpu.a 23 + $(CC) $(CFLAGS) -ffp-contract=off -o $@ tests/gpu_q38_graph_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm 24 +test-gpu-q38-graph-host: $(GPU_Q38_GRAPH_TEST) 25 + ./$(GPU_Q38_GRAPH_TEST) --host-only 26 diff --git a/src/omega_blackwell_qmd.h b/src/omega_blackwell_qmd.h 27 index `f1c7018f`..`865887f1` 100644 28 --- a/src/omega_blackwell_qmd.h 29 +++ b/src/omega_blackwell_qmd.h 30 @@ -34,11 +34,14 @@ typedef struct { 31 uint32_t grid_y; 32 uint32_t gpr_count; 33 /* Shared memory per CTA in bytes (clcec0qmd.h SHARED_MEMORY_SIZE_SHIFTED7, 128-byte units). 34 - * 0 keeps the long-standing 1024. At most OMEGA_BW_QMD_MAX_SHARED_BYTES, well inside the 35 - * TARGET_SM_CONFIG this QMD declares (word 36). */ 36 + * 0 keeps the long-standing 1024. At most OMEGA_BW_QMD_MAX_SHARED_BYTES: word 36 declares 37 + * MIN_ and TARGET_SM_CONFIG_SHARED_MEM_SIZE 9 = 32 KB (mesa nak qmd.rs gv100_smem_size_to_hw: 38 + * size_kb / 4 + 1; SM >= 120 configs 0, 8, 16, 32, 64, 100 KB, nouveau_device.c), and a CTA must fit 39 + * the MIN config. Raised from 16 KiB for the bf16 GEMV at k 5120 (20 KiB of x, sc #642); above 40 + * 32 KiB the MIN / TARGET fields must follow the size (not done yet: every launch keeps one word 36). */ 41 uint32_t shared_bytes; 42 } OmegaBlackwellQmdConfig; 43 -#define OMEGA_BW_QMD_MAX_SHARED_BYTES 16384u 44 +#define OMEGA_BW_QMD_MAX_SHARED_BYTES 32768u 45 46 /* Build QMD 0: GRID_NULL null-barrier grid with dependence counter 2 */ 47 int omega_blackwell_build_qmd0(uint32_t *qmd0_words, uint64_t qmd0_va, uint64_t qmd1_va);