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

hip/gfx906: the tree does not build (q6_k MMQ instance and cudaEventBlockingSync)

phoenixclydea732a19b6fd6
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 995765af9..f51e722a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1267,8 +1267,8 @@ if(STRATA_NATIVE_EXPERTS)
set(_strata_mmq_cuda_types ${_strata_mmq_types})
if(STRATA_MMQ_KQUANTS)
list(APPEND _strata_mmq_cuda_types q4_k q5_k q5_1)
- if(STRATA_Q6K_EXPERTS) # UD-Q6_K_XL gate/up (docs/UNSLOTH_Q6.md)
- list(APPEND _strata_mmq_cuda_types q6_k)
+ if(STRATA_Q6K_EXPERTS OR STRATA_HIP_GFX906) # UD-Q6_K_XL gate/up (docs/UNSLOTH_Q6.md),
+ list(APPEND _strata_mmq_cuda_types q6_k) # and gfx906: moe_mmq.cu calls it under __HIPCC__
endif()
endif()
foreach(_t IN LISTS _strata_mmq_cuda_types)
diff --git a/include/strata/platform/hip_compat/strata_hip.h b/include/strata/platform/hip_compat/strata_hip.h
index 5af9b68f8..6d997fe09 100644
--- a/include/strata/platform/hip_compat/strata_hip.h
+++ b/include/strata/platform/hip_compat/strata_hip.h
@@ -49,6 +49,7 @@
#define cudaStreamCaptureStatusNone hipStreamCaptureStatusNone
#define cudaStreamCaptureStatusActive hipStreamCaptureStatusActive
#define cudaEventDisableTiming hipEventDisableTiming
+#define cudaEventBlockingSync hipEventBlockingSync
#define cudaEventDefault hipEventDefault
#define cudaHostAllocDefault hipHostMallocDefault
#define cudaHostAllocPortable hipHostMallocPortable