Skip to content

Commit 3badef1

Browse files
committed
ggml : fix avx512 const correctness
ggml-ci
1 parent 5294542 commit 3badef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ do { \
10581058

10591059
// unlike _mm256_cvt intrinsics that require F16C, _mm512_cvt is defined in AVX512F
10601060
// so F16C guard isn't required
1061-
#define GGML_F32Cx16_LOAD(x) _mm512_cvtph_ps(_mm256_loadu_si256((__m256i *)(x)))
1061+
#define GGML_F32Cx16_LOAD(x) _mm512_cvtph_ps(_mm256_loadu_si256((const __m256i *)(x)))
10621062
#define GGML_F32Cx16_STORE(x, y) _mm256_storeu_si256((__m256i *)(x), _mm512_cvtps_ph(y, 0))
10631063

10641064
#define GGML_F32Cx16_FMA(a, b, c) _mm512_fmadd_ps(b, c, a)

0 commit comments

Comments
 (0)