[PR #1767] [CLOSED] sycl: add STRATA_DOORBELL_NOCHECK to skip the payload wait (debug only) #3659

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/1767
Author: @duncanmcqueen
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: a770-doorbell-nocheck


📝 Commits (9)

  • 8f69d94 sycl: publish the doorbell with the uncached write hint
  • 33064c3 sycl: chunk the expert mirror and raise memlock in the wrapper
  • 039992e sycl: keep Alchemist's prompt path on its own buffers
  • c756d4b sycl: add the doorbell payload checksum
  • aa71188 sycl: stage oneMKL GEMM operands that lie more than 4 GiB into their allocation
  • b40f69f sycl: build Alchemist kernels for allocations past 4 GiB
  • ebe06f9 sycl: setup picks the Intel card by PCI id and configures Alchemist
  • 712bbc9 sycl: fix the GEMM staging scratch lifetime and unregister freed allocations
  • bd67007 sycl: add STRATA_DOORBELL_NOCHECK to skip the payload wait (debug only)

📊 Changes

17 files changed (+528 additions, -160 deletions)

View changed files

📝 docs/INTEL.md (+9 -0)
📝 include/strata/kernels/elementwise.hpp (+15 -0)
📝 sycl/CMakeLists.txt (+8 -1)
📝 sycl/include/strata/core/gguf_expert_source.hpp (+7 -4)
📝 sycl/include/strata/sycl_doorbell.hpp (+30 -0)
📝 sycl/include/strata/sycl_queue.hpp (+45 -1)
➕ sycl/probe/doorbell_store.cpp (+43 -0)
📝 sycl/serve/strata-sycl.sh (+1 -0)
📝 sycl/setup_intel.py (+51 -16)
📝 sycl/src/core/expert_cache.cpp (+6 -0)
📝 sycl/src/core/gguf_expert_source.cpp (+72 -38)
📝 sycl/src/core/layer.cpp (+2 -2)
📝 sycl/src/core/session.cpp (+8 -0)
📝 sycl/src/core/verify.cpp (+16 -0)
📝 sycl/src/kernels/cuda/elementwise.dp.cpp (+128 -96)
📝 sycl/src/prefill/gemm.dp.cpp (+58 -0)
📝 sycl/src/program/generate.cpp (+29 -2)

📄 Description

Summary

Adds an opt-in STRATA_DOORBELL_NOCHECK env switch: when set, doorbell_wait_payload trusts the ring and skips the payload-checksum wait. It exists because on this build both in-engine profilers fail before they can measure anything — STRATA_VERIFY_EAGER=1 and STRATA_VERIFY_PROFILE=1 both error in the verify window at layer 0 with rang but its payload never arrived whole (verify.cpp) — so the stage profiler cannot run. With the switch, the host-timed stage table prints.

Dependency

This PR is stacked on #1602 (intel-sycl-handshake): it modifies doorbell_wait_payload, which #1602 adds. The branch therefore contains #1602's commits; only the last commit (sycl: add STRATA_DOORBELL_NOCHECK...) is new. Merge after #1602, or cherry-pick that one commit once #1602 lands.

Extra Notes

Debug/profile only. With it set, the CPU expert pool can read a stale payload and the output may be wrong — the exact race the checksum catches. It is inert when unset (a single getenv), so it has no effect on a normal run. It is the smallest way to unblock profiling on the SYCL path; the underlying eager-path payload failure is a separate, deeper issue and is not fixed here.


🔄 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/1767 **Author:** [@duncanmcqueen](https://github.com/duncanmcqueen) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770-doorbell-nocheck` --- ### 📝 Commits (9) - [`8f69d94`](https://github.com/Niko1221/Strata/commit/8f69d94b74310aab13d3e9444e5f47e3d56c3068) sycl: publish the doorbell with the uncached write hint - [`33064c3`](https://github.com/Niko1221/Strata/commit/33064c3500e659c4667d7afc9109320689ef6223) sycl: chunk the expert mirror and raise memlock in the wrapper - [`039992e`](https://github.com/Niko1221/Strata/commit/039992e4f997a8accd74da382abe84e48db8071c) sycl: keep Alchemist's prompt path on its own buffers - [`c756d4b`](https://github.com/Niko1221/Strata/commit/c756d4bf2bddf3b085e29410e95d4dce23f5706d) sycl: add the doorbell payload checksum - [`aa71188`](https://github.com/Niko1221/Strata/commit/aa71188b5b90a60edf3e90e5c15490fa075ee83a) sycl: stage oneMKL GEMM operands that lie more than 4 GiB into their allocation - [`b40f69f`](https://github.com/Niko1221/Strata/commit/b40f69f642418336adb75f425822ff82b716b0c5) sycl: build Alchemist kernels for allocations past 4 GiB - [`ebe06f9`](https://github.com/Niko1221/Strata/commit/ebe06f9fffeac9942897a7610647567ef37c5c5a) sycl: setup picks the Intel card by PCI id and configures Alchemist - [`712bbc9`](https://github.com/Niko1221/Strata/commit/712bbc9701a663b9528559bb3e15020d10741001) sycl: fix the GEMM staging scratch lifetime and unregister freed allocations - [`bd67007`](https://github.com/Niko1221/Strata/commit/bd67007940c99b6e9a8a23254ba0435f8156b93f) sycl: add STRATA_DOORBELL_NOCHECK to skip the payload wait (debug only) ### 📊 Changes **17 files changed** (+528 additions, -160 deletions) <details> <summary>View changed files</summary> 📝 `docs/INTEL.md` (+9 -0) 📝 `include/strata/kernels/elementwise.hpp` (+15 -0) 📝 `sycl/CMakeLists.txt` (+8 -1) 📝 `sycl/include/strata/core/gguf_expert_source.hpp` (+7 -4) 📝 `sycl/include/strata/sycl_doorbell.hpp` (+30 -0) 📝 `sycl/include/strata/sycl_queue.hpp` (+45 -1) ➕ `sycl/probe/doorbell_store.cpp` (+43 -0) 📝 `sycl/serve/strata-sycl.sh` (+1 -0) 📝 `sycl/setup_intel.py` (+51 -16) 📝 `sycl/src/core/expert_cache.cpp` (+6 -0) 📝 `sycl/src/core/gguf_expert_source.cpp` (+72 -38) 📝 `sycl/src/core/layer.cpp` (+2 -2) 📝 `sycl/src/core/session.cpp` (+8 -0) 📝 `sycl/src/core/verify.cpp` (+16 -0) 📝 `sycl/src/kernels/cuda/elementwise.dp.cpp` (+128 -96) 📝 `sycl/src/prefill/gemm.dp.cpp` (+58 -0) 📝 `sycl/src/program/generate.cpp` (+29 -2) </details> ### 📄 Description ## Summary Adds an opt-in `STRATA_DOORBELL_NOCHECK` env switch: when set, `doorbell_wait_payload` trusts the ring and skips the payload-checksum wait. It exists because on this build **both** in-engine profilers fail before they can measure anything — `STRATA_VERIFY_EAGER=1` and `STRATA_VERIFY_PROFILE=1` both error in the verify window at layer 0 with `rang but its payload never arrived whole` (verify.cpp) — so the stage profiler cannot run. With the switch, the host-timed stage table prints. ## Dependency **This PR is stacked on #1602** (`intel-sycl-handshake`): it modifies `doorbell_wait_payload`, which #1602 adds. The branch therefore contains #1602's commits; only the last commit (`sycl: add STRATA_DOORBELL_NOCHECK...`) is new. Merge after #1602, or cherry-pick that one commit once #1602 lands. ## Extra Notes Debug/profile only. With it set, the CPU expert pool can read a stale payload and the output may be wrong — the exact race the checksum catches. It is inert when unset (a single `getenv`), so it has no effect on a normal run. It is the smallest way to unblock profiling on the SYCL path; the underlying eager-path payload failure is a separate, deeper issue and is not fixed here. --- <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#3659
No description provided.