From 0c7663484172dde635bd18ec0812897c28d739e7 Mon Sep 17 00:00:00 2001 From: Vibhor Date: Thu, 28 May 2026 17:57:09 +0530 Subject: [PATCH] fix upgrade WBUF_SIZE/SUMBUF to static constexpr for MSVC 19.29 --- modules/dnn/src/int8layers/conv2_int8_kernels.simd.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dnn/src/int8layers/conv2_int8_kernels.simd.hpp b/modules/dnn/src/int8layers/conv2_int8_kernels.simd.hpp index 58fee00b73..b71ba9022b 100644 --- a/modules/dnn/src/int8layers/conv2_int8_kernels.simd.hpp +++ b/modules/dnn/src/int8layers/conv2_int8_kernels.simd.hpp @@ -1164,7 +1164,7 @@ static void convInt8BlockDepthwise(const void* inp_, const void* residual_, int ntiles = (planeblocks_ + TILE - 1) / TILE; int total_tasks = N * K1 * ntiles; #if CV_AVX2 && (defined(__x86_64__) || defined(_M_X64)) - constexpr int WBUF_SIZE = 128 * 8; // 128 * K0, K0=8; named for MSVC + static constexpr int WBUF_SIZE = 128 * 8; // 128 * K0, K0=8; static for MSVC 19.29 #endif parallel_for_(Range(0, total_tasks), [&](const Range& range) { @@ -1587,7 +1587,7 @@ void convInt8Block(const void* inp_, const void* residual_, int total_blocks = N * ngroups * Kblk; #if CV_AVX2 - constexpr int SUMBUF_SIZE = 8 * 8; // SPAT_BLOCK_SIZE * K0, both=8; named for MSVC + static constexpr int SUMBUF_SIZE = 8 * 8; // SPAT_BLOCK_SIZE * K0, both=8; static for MSVC 19.29 #endif parallel_for_(Range(0, total_blocks), [&](const Range& range) {