-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Right now you can't compile Whisper.cpp (1.7.5 and current master) with MSVC for Arm64 and __ARM_NEON defined, due to the __fp16 not being known by MSVC, in ggml-impl.h:
#if defined(__ARM_NEON) && !(defined(__CUDACC__) && __CUDACC_VER_MAJOR__ <= 11) && !defined(__MUSACC__)
#define GGML_COMPUTE_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)
#define GGML_COMPUTE_FP32_TO_FP16(x) ggml_compute_fp32_to_fp16(x)
#define GGML_FP16_TO_FP32(x) ggml_compute_fp16_to_fp32(x)
static inline float ggml_compute_fp16_to_fp32(ggml_fp16_t h) {
__fp16 tmp;
memcpy(&tmp, &h, sizeof(ggml_fp16_t));
return (float)tmp;
}
static inline ggml_fp16_t ggml_compute_fp32_to_fp16(float f) {
ggml_fp16_t res;
__fp16 tmp = f;
memcpy(&res, &tmp, sizeof(ggml_fp16_t));
return res;
}
whisper.cpp/ggml/src/ggml-impl.h
Line 336 in b175baa
__fp16 tmp; |
Metadata
Metadata
Assignees
Labels
No labels