mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1669] [CLOSED] sycl: pin the PCIe probe's source buffer (fixes multi gpu layer split) #3595
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#3595
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/1669
Author: @maxious
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix/sycl-split-card-pagefault📝 Commits (2)
9a5ac61sycl: pin the PCIe probe's source buffer099b61eClean up comments in generate.cpp📊 Changes
1 file changed (+3 additions, -9 deletions)
View changed files
📝
sycl/src/program/generate.cpp(+3 -9)📄 Description
Relates to #485 (the probe's reading sets
pcie_frac). Not a fix for #1054: that startup wedge on a 2-card split has a different mechanism (the host-mirror fill).Summary
probe_pcie_h2d_gbpscopies from a pageable 256 MiB source. On two Arc Pro B60s with--layer-split autothe copy engine faults at a fixed VA in the driver's pool region (0xffffc001ffa10000): hundreds ofbcs VM_NOT_FOUNDfaults at FaultLevel 4 (the top-level page-table entry is absent, so the VA range was never mapped in that VM), the load wedges, and no window ever starts. Measured 755 and 747 faults in two runs; intermittent on fresh boots, and observed on a layer split (a single-card start was not exercised).What changed
sycl/src/program/generate.cpp,probe_pcie_h2d_gbps: allocate the source withsycl::malloc_hostand free it with the matchingsycl::free. The function's own comment already says it times "copies from pinned host memory, as the expert arena's reads are" - a pageable source contradicted that, and is what the driver stages through its bounce path.This moves a number the default path uses: the probe feeds
pcie_frac_for_gbps, so the share of missed experts the GPU reads over PCIe follows the reading. Same build otherwise, one variable changed:pcie_fracBoth cards sit in x8 slots; above 20 GB/s the share is unchanged, so no x16 machine's default moves.
The buffer is allocated, used and freed inside the probe, so the page-locked footprint is transient (256 MiB for ~0.1 s). On a device without host USM the allocation throws,
DPCT_CHECK_ERRORcatches it, the probe returns-1.0and the caller keeps the default share - no new hard failure.Extra Notes
Two consecutive loads reached the window cleanly with the pin (2/2); the run log shows the 256 MiB host USM allocation the pageable version never made. Not tested: the AMD SYCL path, a single-card start, an x16 slot. Also removes the now-stale DPCT1124 note above the timed memcpy in the same function (that call waits explicitly).
All the split-fault instrumentation (guard watch, stage stamps and the
STRATA_STAGE_WAITserial gate, terminate dumps, coredump grabbers) lives on https://github.com/maxious/Strata_SYCL/tree/scratch/split-fault-instruments🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.