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 710dfc4 commit 63a83ffCopy full SHA for 63a83ff
ggml/src/ggml-metal/ggml-metal.m
@@ -92,7 +92,10 @@
92
93
if (ctx->mtl_device == nil) {
94
ctx->mtl_device = MTLCreateSystemDefaultDevice();
95
+ }
96
97
+ // There may be still no Metal device available
98
+ if (ctx->mtl_device) {
99
ctx->has_simdgroup_reduction = [ctx->mtl_device supportsFamily:MTLGPUFamilyApple7];
100
ctx->has_simdgroup_reduction |= [ctx->mtl_device supportsFamily:MTLGPUFamilyMetal3_GGML];
101
0 commit comments