We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6969829 commit 670b8dbCopy full SHA for 670b8db
ggml/src/ggml-metal.metal
@@ -12,7 +12,13 @@ using namespace metal;
12
13
#define N_SIMDWIDTH 32 // assuming SIMD group size is 32
14
15
-#if !defined(__BFLT16_M_PI__)
+// ref: https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
16
+//
17
+// cmd:
18
+// .../usr/bin/metal -dM -E -c ggml/src/ggml-metal.metal
19
+// .../usr/bin/metal -dM -E -c -target air64-apple-ios14.0 ggml/src/ggml-metal.metal
20
21
+#if __METAL_VERSION__ < 310
22
#define GGML_METAL_NO_BFLOAT
23
#endif
24
0 commit comments