summaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
authorjunchao-loongson <68935141+junchao-loongson@users.noreply.github.com>2024-05-30 17:30:10 +0800
committerGitHub <noreply@github.com>2024-05-30 12:30:10 +0300
commitd5c05821f3c3d6cabe8ac45776fe0ecb0da13eca (patch)
treee68a93542a08670959c00ff47a99c36687cbf2a1 /ggml.c
parent972b555ab935705f3437abd5909a5c46852811f6 (diff)
ggml : fix loongarch build (O2 issue) (#7636)
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml.c b/ggml.c
index b2b725f6..f3a90ff2 100644
--- a/ggml.c
+++ b/ggml.c
@@ -1580,7 +1580,7 @@ do { \
#define GGML_F32Cx8_ZERO (__m256)__lasx_xvldi(0)
#define GGML_F32Cx8_SET1(x) (__m256)__lasx_xvreplgr2vr_w((x))
-static inline __m256 __lasx_f32cx8_load(ggml_fp16_t *x) {
+static inline __m256 __lasx_f32cx8_load(const ggml_fp16_t *x) {
float tmp[8];
for (int i = 0; i < 8; i++) {