From 0383670cd556496ab3b3059f9a1fe10f44eef274 Mon Sep 17 00:00:00 2001 From: mstembera Date: Fri, 15 Aug 2025 14:41:55 -0700 Subject: [PATCH] Avoid using _mm512_storeu_epi16() gcc 9 & 10 do not provide this function, instead use the generic _mm512_storeu_si512 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95483 https://tests.stockfishchess.org/actions?max_actions=1&action=&user=&text=&before=1755266300.455175&run_id= closes https://github.com/official-stockfish/Stockfish/pull/6231 No functional change --- src/nnue/layers/affine_transform_sparse_input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnue/layers/affine_transform_sparse_input.h b/src/nnue/layers/affine_transform_sparse_input.h index 685cf8ea1..a073c6196 100644 --- a/src/nnue/layers/affine_transform_sparse_input.h +++ b/src/nnue/layers/affine_transform_sparse_input.h @@ -104,7 +104,7 @@ void find_nnz(const std::int32_t* RESTRICT input, // Avoid _mm512_mask_compressstoreu_epi16() as it's 256 uOps on Zen4 __m512i nnz = _mm512_maskz_compress_epi16(nnzMask, base); - _mm512_storeu_epi16(out + count, nnz); + _mm512_storeu_si512(out + count, nnz); count += popcount(nnzMask); base = _mm512_add_epi16(base, increment);