You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing my work on updating whisper.cpp packaging on MacPorts, @barracuda156 discovered an issue with older OS X versions (output copied below), in which apparently vDSP functions like vDSP_vadd were not using const float as they are now, which leads to an error.
using vDSP_fn_t = void (*)(const float *, vDSP_Stride, const float *, vDSP_Stride, float *, vDSP_Stride, vDSP_Length); AKA {aka 'void (*)(const float*, long int, const float*, long int, float*, long int, long unsigned int)'}
But it appears that on his OS X 10.6, vDSP_v{div,add,sub,mul} were void (*)(float*, long int, float*, long int, float*, long int, long unsigned int)?
While testing my work on updating whisper.cpp packaging on MacPorts, @barracuda156 discovered an issue with older OS X versions (output copied below), in which apparently vDSP functions like
vDSP_vadd
were not using const float as they are now, which leads to an error.using vDSP_fn_t = void (*)(const float *, vDSP_Stride, const float *, vDSP_Stride, float *, vDSP_Stride, vDSP_Length);
AKA{aka 'void (*)(const float*, long int, const float*, long int, float*, long int, long unsigned int)'}
But it appears that on his OS X 10.6, vDSP_v{div,add,sub,mul} were
void (*)(float*, long int, float*, long int, float*, long int, long unsigned int)
?I think that a potential fix would be to put each of these (starting https://github.com/ggml-org/whisper.cpp/blob/adaea088bca383ac7abebdce26546f1885bd9376/ggml/src/ggml-cpu/binary-ops.cpp#L73C1-L73C33) inside a reinterpret_cast<>()?
vDSP_op = reinterpret_cast<vDSP_fn_t>(vDSP_vadd);
etc.His error output:
The text was updated successfully, but these errors were encountered: