Skip to content

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++

Clean up comments in generate.cpp

Alex Sadleir7e940789e6b5
diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cpp
index 16189f12c..841f84f3b 100644
--- a/sycl/src/program/generate.cpp
+++ b/sycl/src/program/generate.cpp
@@ -1505,9 +1505,6 @@ double probe_pcie_h2d_gbps(std::string *samples = nullptr) try {
constexpr int kBursts = 4;
void* h = nullptr;
void* d = nullptr;
- // pinned source: a pageable 256 MiB source made the copy engine (bcs) fault inside the driver's bounce
- // path on a layer split (755 x VM_NOT_FOUND at a fixed pool VA, on a fresh boot), wedging the load. The
- // DPCT1124 note below this call says exactly that.
if (DPCT_CHECK_ERROR(h = (void *)sycl::malloc_host(kBytes, dpct::get_in_order_queue())) != 0) return -1.0;
if (DPCT_CHECK_ERROR(d = (void *)sycl::malloc_device(
kBytes, dpct::get_in_order_queue())) != 0) {
@@ -1515,12 +1512,6 @@ double probe_pcie_h2d_gbps(std::string *samples = nullptr) try {
return -1.0;
}
std::memset(h, 0, kBytes); // fault the pages in before timing
- /*
- DPCT1124: cudaMemcpyAsync is migrated to asynchronous memcpy API. While
- the origin API might be synchronous, it depends on the type of operand
- memory, so you may need to call wait() on event return by memcpy API to
- ensure synchronization behavior.
- */
dpct::get_in_order_queue().memcpy(
d, h, kBytes).wait(); // warmup: context up, copy engine primed
float ms[kBursts] = {};