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

stage pin: no cudaErrorNotSupported (it is not in the HIP compat layer); same behaviour

Niko1221982b8cf5158b
diff --git a/src/core/expert_source.cpp b/src/core/expert_source.cpp
index 741f6762b..840e65d7d 100644
--- a/src/core/expert_source.cpp
+++ b/src/core/expert_source.cpp
@@ -1198,8 +1198,9 @@ bool FileExpertSource::claim_stage(int64_t key, size_t& v, bool& fill, bool ahea
want_pin = STAGE_PIN_DEFAULT && available_memory_bytes(avail) && avail >= (uint64_t) stage_blob_ + kStagePinFloor;
}
void* p = nullptr;
- const cudaError_t pin_err = want_pin ? cudaHostAlloc(&p, (size_t) stage_blob_, cudaHostAllocDefault) : cudaErrorNotSupported;
- const bool pinned = pin_err == cudaSuccess && p != nullptr;
+ cudaError_t pin_err = cudaSuccess;
+ if (want_pin) pin_err = cudaHostAlloc(&p, (size_t) stage_blob_, cudaHostAllocDefault);
+ const bool pinned = want_pin && pin_err == cudaSuccess && p != nullptr;
if (!pinned) (void) cudaGetLastError(); // the failed alloc's sticky error is ours, not the caller's
uint8_t* raw = pinned ? (uint8_t*) p : new (std::nothrow) uint8_t[(size_t) stage_blob_];
if (raw == nullptr) return false;