[PR #1766] [CLOSED] sycl: add a device-event BF16/F32 MMVF bench #3658

Closed
opened 2026-11-07 15:29:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • b21bff3 sycl: 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.cpp and 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 default bf16_gemv_fp32_mmvf_multi path vs STRATA_MMVF_ROWS=1 across the Coder's shapes (n x k) 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_bench target plus two CTest cases (--quick --rows 0 and --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 on level_zero and needs no model. Both CTest cases pass.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1766 **Author:** [@duncanmcqueen](https://github.com/duncanmcqueen) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770-bf16-event-bench` --- ### 📝 Commits (1) - [`b21bff3`](https://github.com/Niko1221/Strata/commit/b21bff363a1e6bc6a60826be811880b3eece8689) sycl: add a device-event BF16/F32 MMVF bench ### 📊 Changes **2 files changed** (+241 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `sycl/CMakeLists.txt` (+5 -0) ➕ `sycl/probe/bf16_event_bench.cpp` (+236 -0) </details> ### 📄 Description ## Summary Adds `sycl/probe/bf16_event_bench.cpp` and 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 default `bf16_gemv_fp32_mmvf_multi` path vs `STRATA_MMVF_ROWS=1` across the Coder's shapes (`n` x `k`) 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_bench` target plus two CTest cases (`--quick --rows 0` and `--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 on `level_zero` and needs no model. Both CTest cases pass. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:51 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3658
No description provided.