Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
sycl: MtpDrafter's queue defaults to nullptr, so a run without --mtp no longer crashes at exit
Katsumi Takeuchic98902a657aa
diff --git a/sycl/include/strata/core/mtp.hpp b/sycl/include/strata/core/mtp.hppindex dc515ad58..f36c08192 100644--- a/sycl/include/strata/core/mtp.hpp+++ b/sycl/include/strata/core/mtp.hpp@@ -231,7 +231,7 @@ private:float chain_prob_[8] = {};int64_t n_vocab_ = 0;uint64_t vram_ = 0;- dpct::queue_ptr cs_ = &dpct::get_in_order_queue();+ dpct::queue_ptr cs_ = nullptr; // load() creates it; not the device's queue, which ~MtpDrafter would destroydpct::experimental::command_graph_exec_ptr prefill_exec_[9] = {};dpct::experimental::command_graph_exec_ptr prefill_dev_exec_[9] = {};int32_t* pf_dev_ = nullptr; ///< E-4: a prompt's rows' token / step / position records, uploaded at oncediff --git a/sycl/tools/fixups.py b/sycl/tools/fixups.pyindex 3b9e00c1b..053d2810d 100644--- a/sycl/tools/fixups.py+++ b/sycl/tools/fixups.py@@ -334,3 +334,9 @@ edit("src/program/generate.cpp", sub(edit("src/kernels/cuda/native_router.dp.cpp", lambda s: s.replace(" item_ct1.barrier(sycl::access::fence_space::local_space);"," sycl::group_barrier(item_ct1.get_sub_group()); // only subgroup row zero participates"))++# MtpDrafter: CUDA's `cudaStream_t cs_ = nullptr` came out as the device's default in-order queue. A drafter that never+# loads (no --mtp) kept it, and its destructor waited on and destroyed that queue: exit 139 after the output.+edit("include/strata/core/mtp.hpp", lambda s: s.replace(+ " dpct::queue_ptr cs_ = &dpct::get_in_order_queue();\n",+ " dpct::queue_ptr cs_ = nullptr; // load() creates it; not the device's queue, which ~MtpDrafter would destroy\n"))