load_experts_gguf: the header declares the new parameter
The definition gained a defaulted parameter while the header kept the four-parameter declaration. The engine's caller is in the same file, so it built, but tests/core/expert_layout_test.cpp calls it through the header and failed to link (LNK2019, unresolved load_experts_gguf). The default now lives in the declaration; expert_layout_test passes.
This commit is contained in:
1 parent
9aae61f76d
commit
e55b9676d7
2 files changed
+3
-2
No files matched your search
@@ -2118,7 +2118,7 @@ bool check_experts_gguf(const std::string& gguf, const strata::kernels::cpu::Exp
|
||||
// `unbuffered` (Windows, experts_unbuffered): each chunk's 4 KiB-aligned window is read with FILE_FLAG_NO_BUFFERING into
|
||||
// an aligned buffer and scattered into the blobs - no copy through the file cache when the drive is read anyway.
|
||||
LoadStats load_experts_gguf(const std::string& gguf, uint8_t* dst, const strata::kernels::cpu::ExpertLayout& lay,
|
||||
int threads, bool unbuffered = false) {
|
||||
int threads, bool unbuffered) {
|
||||
LoadStats st;
|
||||
st.layers = (uint64_t) lay.n_layers;
|
||||
const auto t0 = std::chrono::steady_clock::now();
|
||||
|
||||
Reference in new issue
Block a user