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

pinned: load_experts_ranges with a PadMap is an overload, not a default argument - the SYCL build's own pinned.dp.cpp defines the 7-argument signature only (the b70 link failed with an undefined reference)

Niko1221af452c1ecbfb
diff --git a/include/strata/core/pinned.hpp b/include/strata/core/pinned.hpp
index 3d306aa86..4d5ef2be6 100644
--- a/include/strata/core/pinned.hpp
+++ b/include/strata/core/pinned.hpp
@@ -140,7 +140,11 @@ struct PadMap {
/// arena under WDDM, even on large pages; a layer boundary inside a page puts that page in both registrations).
LoadStats load_experts_ranges(const std::string& path, uint8_t* dst, const std::vector<uint64_t>& layer_off,
const std::vector<uint64_t>& layer_bytes, int threads, uint64_t chunk,
- const std::atomic<int>* ready = nullptr, const PadMap* pad = nullptr);
+ const std::atomic<int>* ready = nullptr);
+/// (an overload, not a default argument: the SYCL build has its own pinned.dp.cpp that defines the signature above only)
+LoadStats load_experts_ranges(const std::string& path, uint8_t* dst, const std::vector<uint64_t>& layer_off,
+ const std::vector<uint64_t>& layer_bytes, int threads, uint64_t chunk,
+ const std::atomic<int>* ready, const PadMap* pad);
/// The same ranges read UNBUFFERED straight into `dst` (Windows): no staging buffer and no file-cache copy - the
/// drive's DMA lands where the experts live. Every range, `dst` and `chunk` must be 4 KiB aligned; returns ok =
diff --git a/src/core/pinned.cu b/src/core/pinned.cu
index e7351e268..42c18b760 100644
--- a/src/core/pinned.cu
+++ b/src/core/pinned.cu
@@ -803,6 +803,12 @@ bool experts_unbuffered(const std::vector<std::string>& files, uint64_t arena_by
#endif
}
+LoadStats load_experts_ranges(const std::string& path, uint8_t* dst, const std::vector<uint64_t>& layer_off,
+ const std::vector<uint64_t>& layer_bytes, int threads, uint64_t chunk,
+ const std::atomic<int>* ready) {
+ return load_experts_ranges(path, dst, layer_off, layer_bytes, threads, chunk, ready, nullptr);
+}
+
LoadStats load_experts_ranges(const std::string& path, uint8_t* dst, const std::vector<uint64_t>& layer_off,
const std::vector<uint64_t>& layer_bytes, int threads, uint64_t chunk,
const std::atomic<int>* ready, const PadMap* pad) {