Skip to content

[UR][SYCL] Triple buffer issue#21694

Draft
mateuszpn wants to merge 11 commits intointel:syclfrom
mateuszpn:triple-buffer-bug
Draft

[UR][SYCL] Triple buffer issue#21694
mateuszpn wants to merge 11 commits intointel:syclfrom
mateuszpn:triple-buffer-bug

Conversation

@mateuszpn
Copy link
Copy Markdown
Contributor

This branch fixes the SYCL triple-buffer/shadow-copy ownership bug by deferring misaligned host-pointer shadow-copy decisions until allocation time (via a new prepareForAllocation hook), so backend-aware policy can choose whether SYCL creates the shadow copy (NativeCPU/OpenCL/offload) or UR owns staging and final copy-back (Level Zero/CUDA/HIP).

It also adds a new end-to-end regression test (buffer_shadow_copy_platform_policy.cpp) that validates backend-dependent allocation behavior for misaligned read-only buffers and verifies correct data copy-back for writable buffers, covering the original failure mode and guarding against regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant