Compare commits

...
Sign in to create a new pull request.

1 commit
master ... f16c

Author SHA1 Message Date
Georgi Gerganov
40ec4882c4
ggml : use F16C conversion when available 2023-05-17 20:05:51 +03:00

3
ggml.c
View file

@ -201,6 +201,9 @@ typedef double ggml_float;
#define GGML_COMPUTE_FP32_TO_FP16(x) _cvtss_sh(x, 0)
#endif
#define GGML_FP16_TO_FP32(x) GGML_COMPUTE_FP16_TO_FP32(x)
#define GGML_FP32_TO_FP16(x) GGML_COMPUTE_FP32_TO_FP16(x)
#elif defined(__POWER9_VECTOR__)
#define GGML_COMPUTE_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)