Skip to content

Commit 1988b98

Browse files
taronaeoqnixsynapse
authored andcommitted
llamafile : support s390x SIMD instruction set (ggml-org#14273)
1 parent 4370911 commit 1988b98

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ggml/src/ggml-cpu/llamafile/sgemm.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#include "ggml-impl.h"
5353
#include "ggml-cpu-impl.h"
5454
#include "ggml-quants.h"
55-
#include "simd-mappings.h"
5655

5756
#include <array>
5857
#include <type_traits>
@@ -74,7 +73,7 @@
7473
namespace {
7574

7675
inline float unhalf(ggml_fp16_t d) {
77-
return GGML_CPU_FP16_TO_FP32(d);
76+
return GGML_FP16_TO_FP32(d);
7877
}
7978

8079
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -253,7 +252,7 @@ template <> inline float32x4_t load(const ggml_fp16_t * p) {
253252
float tmp[4];
254253

255254
for (int i = 0; i < 4; i++) {
256-
tmp[i] = GGML_CPU_FP16_TO_FP32(p[i]);
255+
tmp[i] = GGML_FP16_TO_FP32(p[i]);
257256
}
258257

259258
return vec_xl(0, (const float *)(tmp));

0 commit comments

Comments
 (0)