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++
pool: STRATA_POOL_UMWAIT only on MSVC proper; the Windows HIP build (clang with the MSVC ABI) has no WAITPKG intrinsics (#2174 follow-up)
Niko122154b61dbb1194
diff --git a/src/kernels/cpu/pool.cpp b/src/kernels/cpu/pool.cppindex 1ea9c6ae1..3bf8c93f6 100644--- a/src/kernels/cpu/pool.cpp+++ b/src/kernels/cpu/pool.cpp@@ -39,7 +39,7 @@ uint64_t umwait_cycles() {static const uint64_t c = [] {const char* e = std::getenv("STRATA_POOL_UMWAIT");if (e == nullptr || std::atoll(e) <= 0) return (uint64_t) 0;-#if defined(_MSC_VER) && defined(_M_X64)+#if defined(_MSC_VER) && defined(_M_X64) && !defined(__clang__) // MSVC proper: clang-cl (the Windows HIP build) has no WAITPKG intrinsics by defaultint r[4] = {0, 0, 0, 0};__cpuidex(r, 7, 0);if (((r[2] >> 5) & 1) == 0) {@@ -548,13 +548,13 @@ void ExpertPool::worker(int id) {const auto parked_at = std::chrono::steady_clock::now();uint32_t spins = 0;const uint64_t um = umwait_cycles();-#if defined(_MSC_VER) && defined(_M_X64)+#if defined(_MSC_VER) && defined(_M_X64) && !defined(__clang__) // MSVC proper: clang-cl (the Windows HIP build) has no WAITPKG intrinsics by defaultconst uint64_t um_esc = umwait_escalate();const uint64_t um_t0 = um != 0 && um_esc != 0 ? __rdtsc() : 0;#endifwhile (epoch_.load(std::memory_order_acquire) == seen) {if (stop_.load(std::memory_order_relaxed)) return;-#if defined(_MSC_VER) && defined(_M_X64)+#if defined(_MSC_VER) && defined(_M_X64) && !defined(__clang__) // MSVC proper: clang-cl (the Windows HIP build) has no WAITPKG intrinsics by defaultif (um != 0) { // STRATA_POOL_UMWAIT: wake on the publish's write to epoch_, or after `um` cycles_umonitor((void*) &epoch_);if (epoch_.load(std::memory_order_acquire) != seen) break;