Skip to content

Commit 0383670

Browse files
mstemberavondele
authored andcommitted
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 #6231 No functional change
1 parent 7a07ac0 commit 0383670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nnue/layers/affine_transform_sparse_input.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void find_nnz(const std::int32_t* RESTRICT input,
104104

105105
// Avoid _mm512_mask_compressstoreu_epi16() as it's 256 uOps on Zen4
106106
__m512i nnz = _mm512_maskz_compress_epi16(nnzMask, base);
107-
_mm512_storeu_epi16(out + count, nnz);
107+
_mm512_storeu_si512(out + count, nnz);
108108

109109
count += popcount(nnzMask);
110110
base = _mm512_add_epi16(base, increment);

0 commit comments

Comments
 (0)