]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
metal : fix compile on macos 11 (#3533)
authorYangLe <redacted>
Thu, 20 Nov 2025 11:54:54 +0000 (19:54 +0800)
committerGitHub <redacted>
Thu, 20 Nov 2025 11:54:54 +0000 (13:54 +0200)
ggml/src/ggml-metal/ggml-metal-ops.cpp

index 366c54ebecd144e702b98e5ca37f59bc347beaa6..e46970dad476bb92d6073ebe0ffcdb401865d226 100644 (file)
@@ -11,6 +11,7 @@
 #include <cassert>
 #include <algorithm>
 #include <limits>
+#include <cmath>
 
 static ggml_metal_buffer_id ggml_metal_get_buffer_id(const ggml_tensor * t) {
     if (!t) {