mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3646
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/1746
Author: @sam-fakhreddine
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix/sycl-pcie-probe-pinned📝 Commits (1)
4521e34sycl: the PCIe probe copies from pinned host memory, as the CUDA engine's does📊 Changes
1 file changed (+6 additions, -3 deletions)
View changed files
📝
sycl/src/program/generate.cpp(+6 -3)📄 Description
Title
Issue: Resolves #1745
Summary
The SYCL engine's PCIe probe now copies from pinned host memory (
sycl::malloc_host), as the CUDA engine's probe does withcudaMallocHostand as the function's own comment describes. Withmallocit timed the driver's pageable staging copy: an Arc Pro B70 on PCIe 5.0 x16 read 7.7 GB/s and gotpcie_frac0.21; with the fix it reads 35.6 GB/s and keeps the 0.55 default.What changed
sycl/src/program/generate.cpp,probe_pcie_h2d_gbps(): the host buffer comes fromsycl::malloc_hoston the same in-order queue instead ofmalloc, the allocation also checks for a null pointer, and both frees aresycl::free. A two-line comment says why. Nothing else in the function changes (four 256 MiB bursts, the fastest counts, thebw / 20share).What it leaves alone: the CUDA and HIP engines (already pinned), the share formula,
--pcie-frac(an explicit value still skips the probe), and every kernel and switch.Extra Notes
How it was checked, on an Arc Pro B70 32 GB (PCIe 5.0 x16, Proxmox passthrough VM, Ubuntu 26.04, xe driver, oneAPI 2026.1.1, NEO 26.05.37020.3), IQ2_XS native pack, the documented command (
--spec 4 --spec-min-p 0.5 --kv int8 --prefill 4096 --max-context 32768,STRATA_VERIFY_NO_HOST=1 STRATA_VERIFY_DEVICE_PLAN=1), greedy, 256 new tokens:sycl/), AOT-DSTRATA_SYCL_AOT=bmg-g31, 0 errors.PCIe probe: 7.7 GB/s host->device (best of 7.5 7.5 7.0 7.7) -> pcie_frac 0.21 (default 0.55).PCIe probe: 35.6 GB/s host->device (best of 27.0 35.6 33.0 31.8) -> pcie_frac 0.55 (default 0.55).bench/results/2026-10-07-community-arc-b65-v01402/benchy-{short,long}.ids).--pcie-frac 0.55(what the fix now picks) against main's probed 0.18, medians of 3 interleaved pairs: 62.6 vs 61.0 tok/s (20-token prompt), 60.3 vs 60.1 (2,185-token prompt). A small difference on IQ2_XS, where 4 to 10% of routed entries come from the mirror; the share matters more for a quant with more experts in the mirror.Not tested: other Intel cards, bare metal (only the passthrough VM), and the layer-split path's per-stage probes (
probe_pcie_h2d_gbpsis shared, so they get the same buffer).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.