mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1642] [CLOSED] sycl: MtpDrafter's queue defaults to nullptr, so a run without --mtp no longer crashes at exit #3579
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#3579
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/1642
Author: @recutita
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:sycl-mtp-queue-null📝 Commits (1)
881ce9asycl: MtpDrafter's queue defaults to nullptr, so a run without --mtp no longer crashes at exit📊 Changes
2 files changed (+7 additions, -1 deletions)
View changed files
📝
sycl/include/strata/core/mtp.hpp(+1 -1)📝
sycl/tools/fixups.py(+6 -0)📄 Description
Title
Issue: none for this site. Same dpct translation as #1555 (
Verifier::ext_stream_, PR #1589); that PR's search found no other site, this is one.Summary
A run without
--mtpcrashes after printing its output on the SYCL port:MtpDrafter's destructor waits on and destroys the device's default in-order queue.cs_now starts asnullptr, as in the CUDA source (include/strata/core/mtp.h:cudaStream_t cs_ = nullptr).What changed
sycl/include/strata/core/mtp.hpp:dpct::queue_ptr cs_ = &dpct::get_in_order_queue()->nullptr.load()creates the drafter's own queue (the high-priority one, orcreate_queue(true)), so every path that usescs_runs afterload(). The destructor already testsif (cs_)beforewait()anddestroy_queue().sycl/tools/fixups.py: the same replacement as an entry, so a re-migrated tree keeps it. Checked onfb58e0d'smtp.hpp: one run gives the committed line, a second run changes nothing.Nothing else changes: with
--mtpthe queue is created inload()exactly as before.How it was checked
Arc Pro B70 (xe, Linux), main
fb58e0d, AOTbmg-g31, Flash-Next IQ3_XXS, one card with the RAM mirror,--tokens, the same 40-token prompt:--mtp(--spec 2 --mtp-max-t 1 --suffix-draft 0), 3 runs--mtp, 1 runfb58e0dlevel_zero backend failed with error: 37 (UR_RESULT_ERROR_UNINITIALIZED), two printed nothing)The decoded tokens are the same before and after in both columns (identical output hashes), and so is the speed (32.4 tok/s without MTP, 54.4 with).
gdb (
gdb-oneapi,break std::terminate, on the 0.1.40.4 base where it also happens) put the throw inMtpDrafter::~MtpDrafter(), fromqueue_impl::wait.Extra Notes
Only the SYCL port is touched (CUDA and HIP already use
nullptr). Tested only on a B-series card by B70 under the xe driver on Linux; not tested on an Arc A-series card (i915) or on Windows.Assisted-by: Claude Code with Opus 5.5 medium
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.