]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
metal : fix the crash caused by the lack of residency set support on Intel Macs....
authorHale Chan <redacted>
Sun, 16 Feb 2025 06:50:26 +0000 (14:50 +0800)
committerGeorgi Gerganov <redacted>
Thu, 27 Feb 2025 06:55:36 +0000 (08:55 +0200)
ggml/src/ggml-metal/ggml-metal.m

index 0add6b51a406d9e3148584e25f6ff2891e875bff..087e7f58149f6a537cedca454462c46c805ca2b0 100644 (file)
@@ -24,7 +24,7 @@
 #endif
 
 // create residency sets only on macOS >= 15.0
-#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
+#if !TARGET_CPU_X86_64 && TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
     TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \
     TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 180000 || \
     TARGET_OS_VISION && __VISION_OS_VERSION_MAX_ALLOWED >= 200000