Sfoglia il codice sorgente

metal : fix compile on macos 11 (whisper/3533)

YangLe 1 mese fa
parent
commit
1d321e592b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      ggml/src/ggml-metal/ggml-metal-ops.cpp

+ 1 - 0
ggml/src/ggml-metal/ggml-metal-ops.cpp

@@ -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) {