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++
generate: res_put syncs stream 0 (HIP has no cudaStreamLegacy) (#550)
Niko122182bc5de63253
diff --git a/src/program/generate.cpp b/src/program/generate.cppindex 687621689..c30713cf5 100644--- a/src/program/generate.cpp+++ b/src/program/generate.cpp@@ -4294,10 +4294,10 @@ int main(int argc, char** argv) {std::vector<int32_t> host_res;// The residency table is read by kernels on non-blocking streams, which do not wait for the legacy stream a plain// cudaMemcpy runs on, and a pageable copy can return before its DMA has landed: each upload waits for its own copy- // (the current device's legacy stream - nothing else).+ // (the current device's legacy stream, stream 0 - nothing else; HIP has no cudaStreamLegacy name, #550).auto res_put = [&host_res](int32_t* dst) -> cudaError_t {const cudaError_t e = cudaMemcpy(dst, host_res.data(), host_res.size() * sizeof(int32_t), cudaMemcpyHostToDevice);- return e != cudaSuccess ? e : cudaStreamSynchronize(cudaStreamLegacy);+ return e != cudaSuccess ? e : cudaStreamSynchronize(nullptr);};int32_t* d_res = nullptr;int32_t* d_hit_count = nullptr;