mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1766] [CLOSED] sycl: add a device-event BF16/F32 MMVF bench #3658
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3658
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1766
Author: @duncanmcqueen
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:a770-bf16-event-bench📝 Commits (1)
b21bff3sycl: add a device-event BF16/F32 MMVF bench📊 Changes
2 files changed (+241 additions, -0 deletions)
View changed files
📝
sycl/CMakeLists.txt(+5 -0)➕
sycl/probe/bf16_event_bench.cpp(+236 -0)📄 Description
Summary
Adds
sycl/probe/bf16_event_bench.cppand a CMake target, a standalone probe that times the existing BF16/F32 matrix-vector paths (bf16_gemv_fp32_mmvf*) with device event timestamps on a profiling-enabled in-order queue, and checks each result against a single-token call of the same kernel. It reports one JSON line per shape.What changed
sycl/probe/bf16_event_bench.cpp: times the defaultbf16_gemv_fp32_mmvf_multipath vsSTRATA_MMVF_ROWS=1across the Coder's shapes (nxk) and 1-8 tokens. Gates on bitwise equality with the per-token calls, guard regions, strided inputs (ldx/ldy), zero and scale-extreme inputs, an FP64 oracle bound, odd tails, and invalid-geometry rejection. Reports queue-span median/min, host wall, empty-marker cost, weight GB/s, and an output hash.sycl/CMakeLists.txt:sycl_bf16_event_benchtarget plus two CTest cases (--quick --rows 0and--quick --rows 1).Extra Notes
Measured on an Arc A770 (
xe, PCIe 3.0 x4): the rows path (STRATA_MMVF_ROWS=1) is 1.4-6x slower than the default on this card — 320x10240 at T=3: 16.1 -> 79.0 us; 2560x2560 at T=4: 38.7 -> 245.5 us — all outputs bitwise-identical. The probe exists so the default-vs-rows choice stays measured. It runs onlevel_zeroand needs no model. Both CTest cases pass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.