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

s2_expert_grouped (#241 follow-up): the new chunk kernels' dp4a through STRATA_DP4A, so the sm_60 experimental build keeps its exact fallback

Niko1221abde6fc8c96d
diff --git a/src/kernels/cuda/s2_expert_grouped.cu b/src/kernels/cuda/s2_expert_grouped.cu
index 50a235237..925ac3a9e 100644
--- a/src/kernels/cuda/s2_expert_grouped.cu
+++ b/src/kernels/cuda/s2_expert_grouped.cu
@@ -254,7 +254,7 @@ __device__ __forceinline__ int load_x_chunk(const uint8_t* __restrict__ xb, int
// natural word j: x[4j .. 4j+3]; a 64-bit shift (sh is 0, 8, 16 or 24) rather than __funnelshift_r, so the same
// source needs no CUDA-only intrinsic.
n[j] = (unsigned) ((((unsigned long long) v[j + 1] << 32) | v[j]) >> sh);
- hx = __dp4a(0x01010101, (int) n[j], hx);
+ hx = STRATA_DP4A(0x01010101, (int) n[j], hx);
}
#pragma unroll
for (int h = 0; h < 2; ++h) {
@@ -274,7 +274,7 @@ __device__ __forceinline__ int load_x_chunk(const uint8_t* __restrict__ xb, int
__device__ __forceinline__ int chunk_s(const int m[8], const int X[8]) {
int s = 0;
#pragma unroll
- for (int j = 0; j < 8; ++j) s = __dp4a(m[j], X[j], s);
+ for (int j = 0; j < 8; ++j) s = STRATA_DP4A(m[j], X[j], s);
return s;
}