From 40eebccb728dd68dd68f2ff7ef7f02771529cf08 Mon Sep 17 00:00:00 2001 From: jel221 Date: Thu, 3 Dec 2026 09:01:08 -0800 Subject: [PATCH 1/2] scoreboard: dispatch credits beyond the queue depth for the ALU and FPU (VX_CFG_DISPATCH_CREDITS) The scoreboard holds one credit per dispatch-queue entry, and an op's credit comes back only when the unit takes it from the queue, not through the operand read in between. With one credit per entry, issue stops while the queue still has room for ops that are only being read. VX_CFG_DISPATCH_CREDITS sets the credits of the ALU and the FPU per issue slice; the other units keep one per entry. An op issued beyond the queue depth waits at the operand collector's output until its queue frees an entry. Default: the queue depth, the same hardware as before (Beacon: identical depth and LUTs on core, core_ldst, tensor and top_vortex). SimX: update_queue_full() takes the same limit (dispatch_credits()). model_parity: parity-dispatch-credits-{sgemm,sgemmx,q2-lanes,iw2}. --- VX_config.toml | 6 +++++ ci/testcases/core.yaml | 27 +++++++++++++++++++ docs/designs/mlp_optimizations.md | 1 + .../proposals/dispatch_credits_design_note.md | 14 ++++++++++ hw/rtl/VX_gpu_pkg.sv | 5 ++++ hw/rtl/core/VX_scoreboard.sv | 12 ++++++--- sim/simx/core.cpp | 11 +++++++- 7 files changed, 71 insertions(+), 5 deletions(-) create mode 100644 docs/proposals/dispatch_credits_design_note.md diff --git a/VX_config.toml b/VX_config.toml index db2a13d3ce..2cb465e3a7 100644 --- a/VX_config.toml +++ b/VX_config.toml @@ -63,6 +63,12 @@ VX_CFG_MAX_BAR_EVENTS = 32 VX_CFG_IBUF_SIZE = 4 VX_CFG_DISPATCH_QUEUE_SIZE = 4 +# Dispatch credits of the ALU and the FPU per issue slice: ops in flight from +# issue until the unit takes them, through the operand read as well as the +# queue. More credits than queue entries keep the unit fed through the operand +# read; an op that then finds its queue full waits at the operand collector's +# output. The other units keep one credit per queue entry. +VX_CFG_DISPATCH_CREDITS = "expr: $VX_CFG_DISPATCH_QUEUE_SIZE" # A power of two: a warp's issue slice is the low bits of its id. VX_CFG_ISSUE_WIDTH = "expr: pow(2, clog2(up($VX_CFG_NUM_WARPS / 16)))" # Fetch slices, each scheduling and fetching its own warps on its own icache diff --git a/ci/testcases/core.yaml b/ci/testcases/core.yaml index c60982dc5d..d3615f9119 100644 --- a/ci/testcases/core.yaml +++ b/ci/testcases/core.yaml @@ -191,6 +191,33 @@ tests: parity_counters: prefix: "core0: dcache" tolerance: [bank_st] +# Dispatch credits beyond the queue depth: ALU and FPU ops wait at the +# operand collector's output for their queue. +- id: parity-dispatch-credits-sgemm + check: model_parity + via: blackbox + app: sgemm + args: -n64 + configs: -DVX_CFG_DISPATCH_CREDITS=8 -DVX_CFG_NUM_WARPS=8 +- id: parity-dispatch-credits-sgemmx + check: model_parity + via: blackbox + app: sgemmx + args: -n64 + configs: -DVX_CFG_DISPATCH_CREDITS=8 -DVX_CFG_NUM_WARPS=8 +# The longest wait: a two-entry queue drained by half-width ALU and FPU lanes. +- id: parity-dispatch-credits-q2-lanes + check: model_parity + via: blackbox + app: sgemm + args: -n32 + configs: -DVX_CFG_DISPATCH_QUEUE_SIZE=2 -DVX_CFG_DISPATCH_CREDITS=8 -DVX_CFG_NUM_ALU_LANES=2 -DVX_CFG_NUM_FPU_LANES=2 -DVX_CFG_NUM_WARPS=8 +- id: parity-dispatch-credits-iw2 + check: model_parity + via: blackbox + app: sgemmx + args: -n64 + configs: -DVX_CFG_DISPATCH_CREDITS=8 -DVX_CFG_NUM_WARPS=16 -DVX_CFG_ISSUE_WIDTH=2 # Softmax: elementwise exp + reduction (FPU + reduction traffic). - id: parity-softmax check: model_parity diff --git a/docs/designs/mlp_optimizations.md b/docs/designs/mlp_optimizations.md index e2439950ec..0af46c7223 100644 --- a/docs/designs/mlp_optimizations.md +++ b/docs/designs/mlp_optimizations.md @@ -79,6 +79,7 @@ Some of these features can be set with a `VX_CFG_*` knob (see [Build Configurati | Miss tracking | `VX_CFG_{DCACHE,L2,L3}_MSHR_SIZE`, `VX_CFG_LSU_PENDING_LIMIT` | Derived from the platform's bandwidth × latency (`VX_CFG_PLATFORM_MEMORY_PEAK_BW`, `VX_CFG_PLATFORM_CLOCK_RATE`, `VX_CFG_PLATFORM_MEMORY_LATENCY`, `VX_CFG_{L1,L2}_LINK_LATENCY`). The stock shapes set no memory latency and resolve to the floors: 16 MSHR entries, an LSU limit of 32 | | Non-power-of-two way count | `VX_CFG_{ICACHE,DCACHE,L2,L3}_NUM_WAYS` | 4, 4, 8, 8. Any count; the sets per bank stay a power of two | | Stack interleave | `VX_CFG_LSU_STACK_INTERLEAVE_ENABLE` | On | +| Dispatch credits | `VX_CFG_DISPATCH_CREDITS` | The dispatch queue depth. Above it, the ALU and FPU issue past their queue's depth to cover the operand read; the other units keep one credit per entry. | | Wide loads and stores | `VX_CFG_EXT_LDST_WIDE_ENABLE` | **Off.** Needs F; on in the NVIDIA and AMD profiles. | | Matrix fragment loads and stores | `VX_CFG_EXT_LDST_MATRIX_ENABLE` | **Off.** Independent of the TCU. | | Atomics at the LLC | `VX_CFG_EXT_A_ENABLE` | Off | diff --git a/docs/proposals/dispatch_credits_design_note.md b/docs/proposals/dispatch_credits_design_note.md new file mode 100644 index 0000000000..0820ef595e --- /dev/null +++ b/docs/proposals/dispatch_credits_design_note.md @@ -0,0 +1,14 @@ +# Design note: dispatch credits beyond the queue depth + +| Field | Content | +|---|---| +| **Goal** | Keep issue from stopping while the ALU and FPU dispatch queues still have room. The scoreboard holds one credit per queue entry, and an op's credit comes back only when its unit takes it from the queue. The ~6-cycle operand read in between holds credits that no queue entry uses, so issue stalls early. This matters once fetch no longer bounds issue (the fetch L0), and for kernels with many registers per thread, which run few warps. | +| **Extension point** | None reaches it: the limit lives in the scoreboard (issue), a shared stage. Gated by `VX_CFG_DISPATCH_CREDITS` (default: the queue depth). With the default, the RTL is the same as before (V-ISO-3). | +| **Mainstream analogue** | Credit-based issue toward execution queues, with the credit pool sized for the round trip between issue and the queue rather than for the queue's storage alone. | +| **Alternatives considered** | (1) **A deeper dispatch queue** (`VX_CFG_DISPATCH_QUEUE_SIZE=8`), the isolated alternative: no shared-stage logic change, and every unit gets the room. On the FPGA it is almost free, because the queues sit in 32-deep LUTRAM. On an ASIC it stores four more full dispatch packets per unit: Beacon ASIC on `core` gives +13,810 FFs (+14.7%), against +2 for the credits. (2) **Return the credit after the operand read.** It keeps the same wait at the collector's output and needs a new path from the collector back to the scoreboard. | +| **Budget** | Default: identical (Beacon on `core`, `core_ldst`, `tensor` and `top_vortex`; `perf_gate`). With 8 credits: Beacon `core` +7 LUTs at the same depth; Beacon ASIC `core` +2 cells and +2 FFs. | +| **SimX plan** | `update_queue_full()` takes the same per-unit limit (`dispatch_credits()`). SimX already holds an op at the operand port when the dispatcher refuses it, as the RTL holds it at the collector's output. Parity: `parity-dispatch-credits-{sgemm,sgemmx,q2-lanes,iw2}`. | +| **Verification plan** | The regression suite on SimX and rtlsim with 8 credits; the four parity cases, including a two-entry queue with half-width ALU and FPU lanes (the longest wait) and issue width 2. | +| **Forward progress** | The new hold: an ALU or FPU op issued beyond its queue's depth waits at the operand collector's output, and every later op of its issue slice waits behind it. Releaser: the unit takes an entry from its queue. Neither unit's inputs wait on another unit, and at commit the ALU yields only to the FPU, whose results its tags bound, so the release always comes. Stress: `parity-dispatch-credits-q2-lanes`. | +| **Migration** | One commit with the RTL, SimX, knob and parity cases; then the perf baselines re-recorded for the new knob's config hash. | +| **Open questions** | The gain on master is small and depends on the kernel (see the PR); the knob stays at the queue depth by default. Whether the maintainer waives the measured gain over the deeper queue (V-ISO-6 item 3), which wins on cycles on the FPGA at nearly the same area there. | diff --git a/hw/rtl/VX_gpu_pkg.sv b/hw/rtl/VX_gpu_pkg.sv index 1b3d5d594c..13a1a67f5d 100644 --- a/hw/rtl/VX_gpu_pkg.sv +++ b/hw/rtl/VX_gpu_pkg.sv @@ -768,6 +768,11 @@ package VX_gpu_pkg; localparam TRAP_CAUSE_BITS = 4; localparam DISPATCH_QSIZE = `VX_CFG_DISPATCH_QUEUE_SIZE; + // the units whose dispatch credits may exceed their queue depth + localparam [NUM_EX_UNITS-1:0] DISPATCH_CREDIT_UNITS = NUM_EX_UNITS'(1 << EX_ALU) + | (`VX_CFG_EXT_F_ENABLED ? NUM_EX_UNITS'(1 << EX_FPU) : '0); + localparam DISPATCH_CREDITS = `VX_CFG_DISPATCH_CREDITS; + `PACKAGE_ASSERT(DISPATCH_CREDITS >= 2) localparam PER_OPC_WARPS = `CDIV(PER_ISSUE_WARPS, `VX_CFG_NUM_OPCS); localparam PER_OPC_NW_BITS = `CLOG2(PER_OPC_WARPS); diff --git a/hw/rtl/core/VX_scoreboard.sv b/hw/rtl/core/VX_scoreboard.sv index aa470d76a2..82ad020364 100644 --- a/hw/rtl/core/VX_scoreboard.sv +++ b/hw/rtl/core/VX_scoreboard.sv @@ -40,12 +40,16 @@ module VX_scoreboard import VX_gpu_pkg::*; #( wire [NUM_EX_UNITS-1:0] fu_issue; wire [NUM_EX_UNITS-1:0] fu_goingfull; - // going-full (not full): a 1-slot guard band keeps outstanding <= queue - // depth despite the registered suppress lag, so an issued op never stalls - // in the shared operand-collection path and HoL-blocks another FU. + // going-full (not full): a 1-slot guard band covers the registered suppress + // lag. With one credit per queue entry an issued op never stalls in the + // shared operand-collection path. The ALU and the FPU may hold more, to + // cover the operand read: their op then waits at the collector's output + // until its queue frees an entry. Neither unit's inputs wait on another + // unit, and at commit the ALU yields only to the FPU, whose results its + // tags bound, so the wait always ends. for (genvar e = 0; e < NUM_EX_UNITS; ++e) begin : g_fu_goingfull VX_pending_size #( - .SIZE (DISPATCH_QSIZE) + .SIZE (DISPATCH_CREDIT_UNITS[e] ? DISPATCH_CREDITS : DISPATCH_QSIZE) ) fu_pending ( .clk (clk), .reset (reset), diff --git a/sim/simx/core.cpp b/sim/simx/core.cpp index 095de0ee40..72873661af 100644 --- a/sim/simx/core.cpp +++ b/sim/simx/core.cpp @@ -1123,11 +1123,20 @@ class Core::Impl { --ibuf_queued_.at(wid); } + // The ALU and the FPU may hold more credits than queue entries, to cover the + // operand read; every other unit holds one per entry. + static uint32_t dispatch_credits(FUType fu) { + static_assert(VX_CFG_DISPATCH_CREDITS >= 2, "dispatch credits must be at least 2"); + bool more = (fu == FUType::ALU) || (fu == FUType::FPU); + return more ? VX_CFG_DISPATCH_CREDITS : VX_CFG_DISPATCH_QUEUE_SIZE; + } + void update_queue_full() { for (uint32_t iw = 0; iw < VX_CFG_ISSUE_WIDTH; ++iw) { fu_full_seen_.at(iw) = fu_full_.at(iw); for (uint32_t fu = 0; fu < (uint32_t)FUType::Count; ++fu) { - bool full = (fu_credits_.at(iw).at(fu) >= VX_CFG_DISPATCH_QUEUE_SIZE - 1); + uint32_t credits = dispatch_credits((FUType)fu); + bool full = (fu_credits_.at(iw).at(fu) >= credits - 1); if (full) { fu_full_.at(iw).set(fu); } else { From 31d49df5af6398dff3107faafbc8dd69f12234cd Mon Sep 17 00:00:00 2001 From: jel221 Date: Thu, 3 Dec 2026 10:53:49 -0800 Subject: [PATCH 2/2] ci: re-record perf baselines for VX_CFG_DISPATCH_CREDITS's config hash The new knob changes the resolved config, so every perf_gate case's config_hash moves. Cycles and instruction counts are unchanged in all 51 cases (the default is the queue depth). Command: pytest ../ci -m perf_gate --update-baselines (from a configured XLEN 32 build tree). Re-recorded by: agent, authorized by jel221 2026-12-03 --- ci/baselines/perf/core.json | 34 +++++++++++++++---------------- ci/baselines/perf/dxa.json | 22 ++++++++++---------- ci/baselines/perf/graphics.json | 18 ++++++++-------- ci/baselines/perf/raytracing.json | 6 +++--- ci/baselines/perf/tensor.json | 12 +++++------ ci/baselines/perf/tensor_mx.json | 2 +- ci/baselines/perf/tensor_sp.json | 2 +- ci/baselines/perf/tensor_wg.json | 6 +++--- 8 files changed, 51 insertions(+), 51 deletions(-) diff --git a/ci/baselines/perf/core.json b/ci/baselines/perf/core.json index a4fed9d6c6..411ec4afe1 100644 --- a/ci/baselines/perf/core.json +++ b/ci/baselines/perf/core.json @@ -6,7 +6,7 @@ }, "app": "raycast", "args": "", - "config_hash": "6a8db2da81885bd3", + "config_hash": "25b3c62534ca0c93", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -17,7 +17,7 @@ }, "app": "raycast", "args": "", - "config_hash": "a7365739bd29ae7f", + "config_hash": "304f48e0a96cbb94", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -28,7 +28,7 @@ }, "app": "sgemm", "args": "-n128", - "config_hash": "a94d5512bae0d0c4", + "config_hash": "9c1141a43dcf0e1a", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=16 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, @@ -39,7 +39,7 @@ }, "app": "sgemm", "args": "-n128", - "config_hash": "ed82856d2fbdb4fa", + "config_hash": "81e6957bef64ce0c", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, @@ -50,7 +50,7 @@ }, "app": "sgemm", "args": "-n128", - "config_hash": "207c97cf1edf224d", + "config_hash": "c6383f9c9f14b46d", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -61,7 +61,7 @@ }, "app": "sgemm", "args": "-n128", - "config_hash": "ddaf766d29f0c9e2", + "config_hash": "9f056da64856b4df", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -72,7 +72,7 @@ }, "app": "sgemm2", "args": "-n64 -t4", - "config_hash": "e3a289024245088f", + "config_hash": "1e905bdfffa76ed0", "configs": "-DVX_CFG_EXT_LDST_WIDE_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -83,7 +83,7 @@ }, "app": "sgemmx", "args": "-n128", - "config_hash": "b33624dacfde5ab3", + "config_hash": "daf017ea0ee1f348", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -94,7 +94,7 @@ }, "app": "sgemmx", "args": "-n128", - "config_hash": "c2faf5453d1010f0", + "config_hash": "7bded449a0a1f1e2", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -105,7 +105,7 @@ }, "app": "sgemv", "args": "-m512 -n512", - "config_hash": "ba5846fb3e38ff61", + "config_hash": "488d0a10f53a2b43", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -116,7 +116,7 @@ }, "app": "sgemv", "args": "-m512 -n512", - "config_hash": "ff7c79ffef364ae9", + "config_hash": "54b011cd47bb589b", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -127,7 +127,7 @@ }, "app": "softmax", "args": "-n64", - "config_hash": "5c38536ce941bce9", + "config_hash": "d4931fc3f36e5ef3", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -138,7 +138,7 @@ }, "app": "softmax", "args": "-n64", - "config_hash": "647c47cbc33e0b1e", + "config_hash": "3d888348e29adae4", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -149,7 +149,7 @@ }, "app": "stencil3d", "args": "-n32", - "config_hash": "e962be6c4a705bd0", + "config_hash": "89e020bb5aa3aabf", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -160,7 +160,7 @@ }, "app": "stencil3d", "args": "-n32", - "config_hash": "44671bcb89d71094", + "config_hash": "f7b7a9ddcdb6531d", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -171,7 +171,7 @@ }, "app": "vecadd", "args": "-n16384", - "config_hash": "3c46a73d97d7dde8", + "config_hash": "19d3e0da0f451ae0", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -182,7 +182,7 @@ }, "app": "vecadd", "args": "-n16384", - "config_hash": "67f76328e947f037", + "config_hash": "bd64d08a54f4e9fe", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" } diff --git a/ci/baselines/perf/dxa.json b/ci/baselines/perf/dxa.json index 9c42109c5f..d0d13e0c8d 100644 --- a/ci/baselines/perf/dxa.json +++ b/ci/baselines/perf/dxa.json @@ -6,7 +6,7 @@ }, "app": "dxa_copy_mcast", "args": "", - "config_hash": "a98f143d348178b8", + "config_hash": "9f84b1e61b08503e", "configs": "-DVX_CFG_EXT_DXA_ENABLE", "driver": "rtlsim" }, @@ -17,7 +17,7 @@ }, "app": "dxa_copy", "args": "-d1", - "config_hash": "55c5155d6ab46f83", + "config_hash": "dd10099abff360cb", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -28,7 +28,7 @@ }, "app": "dxa_copy", "args": "-d1", - "config_hash": "ee5d9d68a6bee766", + "config_hash": "077f3a70673f3ea3", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -39,7 +39,7 @@ }, "app": "sgemm2_dxa_mcast", "args": "-n128", - "config_hash": "82c50e47ea6ea51c", + "config_hash": "0842e05184b5535e", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -50,7 +50,7 @@ }, "app": "sgemm2_dxa_mcast", "args": "-n128", - "config_hash": "8f2e3ded05181df5", + "config_hash": "13e18d361b16e368", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -61,7 +61,7 @@ }, "app": "sgemm2_dxa", "args": "-n128 -t4 -m1", - "config_hash": "a94548f6a341be69", + "config_hash": "a5756a3c90edc5a0", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -72,7 +72,7 @@ }, "app": "sgemm2_dxa", "args": "-n128 -t4 -m1", - "config_hash": "b647693500d03cdb", + "config_hash": "9a10d5fea9d7da64", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -83,7 +83,7 @@ }, "app": "sgemm_tcu_wg_dxa_mcast", "args": "-m 128 -n 128 -k 64", - "config_hash": "7506c2b313ddfb40", + "config_hash": "817f39ec95470989", "configs": "-DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -94,7 +94,7 @@ }, "app": "sgemm_tcu_wg_dxa_mcast", "args": "-m 128 -n 128 -k 64", - "config_hash": "a7d7a7c19cc97d7f", + "config_hash": "358a1a8c6d8d45f6", "configs": "-DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -105,7 +105,7 @@ }, "app": "sgemm_tcu_wg_dxa", "args": "-m 128 -n 128 -k 64", - "config_hash": "0dfd4e6b3f65442b", + "config_hash": "2f6e10ea415c00c3", "configs": "-DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DWGMMA_NRC=16 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_THREADS=32", "driver": "rtlsim" }, @@ -116,7 +116,7 @@ }, "app": "sgemm_tcu_wg_sp_dxa", "args": "-m 128 -n 128 -k 128", - "config_hash": "30f77e58ea21b51b", + "config_hash": "9b0f0912fb48505c", "configs": "-DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DWGMMA_NRC=32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_THREADS=32", "driver": "rtlsim" } diff --git a/ci/baselines/perf/graphics.json b/ci/baselines/perf/graphics.json index d52d41eda8..c47f80a10f 100644 --- a/ci/baselines/perf/graphics.json +++ b/ci/baselines/perf/graphics.json @@ -6,7 +6,7 @@ }, "app": "gfx_draw3d", "args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png", - "config_hash": "c548118c41bcef23", + "config_hash": "08845cf1ffd4b764", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, @@ -17,7 +17,7 @@ }, "app": "gfx_draw3d", "args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png", - "config_hash": "48890b8c1ad7fe04", + "config_hash": "00747226f88805b0", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -28,7 +28,7 @@ }, "app": "gfx_draw3d", "args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png", - "config_hash": "b08776e5f96f6b97", + "config_hash": "9af2dd02588b9d81", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -39,7 +39,7 @@ }, "app": "gfx_om", "args": "-w 128 -h 128 -r whitebox_128.png", - "config_hash": "32307cceb33dc7a6", + "config_hash": "de5869cd3ad7b84a", "configs": "-DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -50,7 +50,7 @@ }, "app": "gfx_om", "args": "-w 128 -h 128 -r whitebox_128.png", - "config_hash": "ce07b69d9a182c02", + "config_hash": "6173232f843527be", "configs": "-DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -61,7 +61,7 @@ }, "app": "gfx_raster", "args": "-w 128 -h 128 -t triangle.cgltrace -r triangle_ref_128.png", - "config_hash": "366fbc3590ee481f", + "config_hash": "87fcf7c6ff3fa2fc", "configs": "-DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -72,7 +72,7 @@ }, "app": "gfx_raster", "args": "-w 128 -h 128 -t triangle.cgltrace -r triangle_ref_128.png", - "config_hash": "8c3f6ea5a04a0d52", + "config_hash": "5e7d26f9e3d6509b", "configs": "-DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, @@ -83,7 +83,7 @@ }, "app": "gfx_tex", "args": "-i toad.png -r toad_ref_f0.png -f 0 -g 0", - "config_hash": "370db7ba23efdbb2", + "config_hash": "e4be16cb6ca83c64", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -94,7 +94,7 @@ }, "app": "gfx_tex", "args": "-i toad.png -r toad_ref_f0.png -f 0 -g 0", - "config_hash": "a680ecaa56a2c2fd", + "config_hash": "bb18512b3cf5ce66", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" } diff --git a/ci/baselines/perf/raytracing.json b/ci/baselines/perf/raytracing.json index db66430680..0e424d9a12 100644 --- a/ci/baselines/perf/raytracing.json +++ b/ci/baselines/perf/raytracing.json @@ -6,7 +6,7 @@ }, "app": "rt_raycast", "args": "", - "config_hash": "9fa9d930efb7a892", + "config_hash": "89434da0e50bb3b9", "configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, @@ -17,7 +17,7 @@ }, "app": "rt_raycast", "args": "", - "config_hash": "bf5c79f92d7a2d0b", + "config_hash": "682215c5b6c636a0", "configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -28,7 +28,7 @@ }, "app": "rt_raycast", "args": "", - "config_hash": "6eca2ad296cbc4c8", + "config_hash": "65071aeb4ddaf573", "configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor.json b/ci/baselines/perf/tensor.json index 660bb540f9..e3bf725a82 100644 --- a/ci/baselines/perf/tensor.json +++ b/ci/baselines/perf/tensor.json @@ -6,7 +6,7 @@ }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "395b9f89b1613b5f", + "config_hash": "134a1334376dd832", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }, @@ -17,7 +17,7 @@ }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "14c25c4ef390468d", + "config_hash": "f7f12d659ba7979d", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=16 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, @@ -28,7 +28,7 @@ }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "3a5afbca2316def1", + "config_hash": "089a724fa807545b", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, @@ -39,7 +39,7 @@ }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "fd128828360dcf27", + "config_hash": "1d36ff4ac01622a9", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32", "driver": "rtlsim" }, @@ -50,7 +50,7 @@ }, "app": "sgemm2_tcu", "args": "-m 128 -n 128 -k 64", - "config_hash": "9934ecd51fa79038", + "config_hash": "90b57ae3c689c0c9", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }, @@ -61,7 +61,7 @@ }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "328c614d0141deb8", + "config_hash": "021e7f763e376169", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_EXT_LDST_MATRIX_ENABLE", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor_mx.json b/ci/baselines/perf/tensor_mx.json index e8acc30a31..0babf20d35 100644 --- a/ci/baselines/perf/tensor_mx.json +++ b/ci/baselines/perf/tensor_mx.json @@ -6,7 +6,7 @@ }, "app": "sgemm_tcu_mx", "args": "-m 128 -n 128 -k32", - "config_hash": "af77d4a5f0a8576f", + "config_hash": "f4b4f13d187e4fe9", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_MX_ENABLE -DVX_CFG_TCU_FP8_ENABLE -DITYPE=mxfp8 -DOTYPE=fp32 -DVX_CFG_TCU_TYPE_DPI", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor_sp.json b/ci/baselines/perf/tensor_sp.json index 7e3e05593e..4e103a9004 100644 --- a/ci/baselines/perf/tensor_sp.json +++ b/ci/baselines/perf/tensor_sp.json @@ -6,7 +6,7 @@ }, "app": "sgemm_tcu_sp", "args": "-m 128 -n 128 -k 128", - "config_hash": "e7354a7a2bc00238", + "config_hash": "1d49b53b7f70ff4a", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor_wg.json b/ci/baselines/perf/tensor_wg.json index 1c5354893e..13b3b089e5 100644 --- a/ci/baselines/perf/tensor_wg.json +++ b/ci/baselines/perf/tensor_wg.json @@ -6,7 +6,7 @@ }, "app": "sgemm_tcu_wg", "args": "-m64 -n64 -k64", - "config_hash": "4d4bf375520e05f4", + "config_hash": "fec1343a5d882b8f", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_TCU_FEDP2K -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=8 -DWGMMA_RS", "driver": "rtlsim" }, @@ -17,7 +17,7 @@ }, "app": "sgemm_tcu_wg", "args": "-m 128 -n 128 -k 128", - "config_hash": "9eda8c6f5a4af670", + "config_hash": "1ee73f0d9e55cb35", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=32 -DWGMMA_SS -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }, @@ -28,7 +28,7 @@ }, "app": "sgemm_tcu_wg_sp", "args": "-m 128 -n 128 -k 128", - "config_hash": "279fd043db54e2d1", + "config_hash": "0d658bd839f8c4ad", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DWGMMA_NRC=32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }