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#3547
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/1589
Author: @nekomario28
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix-1555-sycl-stream-sentinel📝 Commits (1)
c245661sycl: keep the null-stream sentinel a sentinel in Verifier (#1555)📊 Changes
2 files changed (+4 additions, -4 deletions)
View changed files
📝
sycl/include/strata/core/verify.hpp(+3 -3)📝
sycl/src/core/verify.cpp(+1 -1)📄 Description
Fixes #1555.
The dpct migration changed
cudaStream_t ext_stream_ = nullptrintodpct::queue_ptr ext_stream_ = &dpct::get_in_order_queue(), evaluated at construction on whichever device is current then — not "no stream". With a stage constructed on device 0 andinit'ed on device 1, the!= &get_in_order_queue()test atinit()compared a device-0 pointer against a device-1 queue, socs_took device 0's queue →Cannot submit to a queue with a dependency from a graph that is associated with a different context/UR_RESULT_ERROR_DEVICE_LOST.Changes
sycl/include/strata/core/verify.hpp:ext_stream_ = nullptr— restores the CUDA sentinel contract (include/strata/core/verify.hpp:319).sycl/src/core/verify.cpp:init()testsext_stream_ != nullptr, matching the CUDAsrc/core/verify.cpp:604.The teardown at line 377 (
cs_ && cs_ != ext_stream_) and the create_queue fallback at line 619 already work under the restored sentinel: an unsetext_stream_falls back to creating the stage's own queue; aset_stream'd one is never destroyed here.Test plan
nullptr,init()nullptr-test, teardown ownership test — the SYCL side now matches all three.git grepoversycl/for other sites treating&get_in_order_queue()as an unset sentinel — none besides this one (the other captures are call-time locals/default args, evaluated in the right context).Not tested: a SYCL compile or a multi-device run — no SYCL toolchain here; the fix is a semantic restore of the CUDA code it was migrated from, which the reporter's trace already diagnosed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.