From 9c46ab821a2fa1e74fa67b5e5296210b2d7cf45f Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Fri, 23 Oct 2026 19:13:07 +0200 Subject: [PATCH] dsv41 iq: kIq1mCodes is CUDA-only, so its use in load_tab_fast is under #if !STRATA_USE_HIP (HIP failed 'undeclared identifier kIq1mCodes': non-dependent names are looked up in the dead constexpr branch) --- src/dsv41/ds4_iq.cu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dsv41/ds4_iq.cu b/src/dsv41/ds4_iq.cu index 062cbac9..8f4745d6 100644 --- a/src/dsv41/ds4_iq.cu +++ b/src/dsv41/ds4_iq.cu @@ -522,10 +522,12 @@ template __device__ __forceinline__ void load_tab_fast(uint32_t* tab) { if constexpr (!F || Fast::WORDS == 0) { load_tab(tab); +#if !defined(STRATA_USE_HIP) // (kIq1mCodes exists on CUDA only; a non-dependent name is looked up even in the dead branch) } else if constexpr (T == kIQ1_M) { // a copy of the generated table (ds4_iq1m_codes.inc): 2048 x 16 bytes const uint4* src = (const uint4*) kIq1mCodes; uint4* dst = (uint4*) tab; for (int j = threadIdx.x; j < 2048; j += blockDim.x) dst[j] = src[j]; +#endif } } template