]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
metal : avoid breaking build when metal API predates TARGET_OS_VISION (#11690)
authorCharles Duffy <redacted>
Thu, 6 Feb 2025 01:52:31 +0000 (19:52 -0600)
committerGitHub <redacted>
Thu, 6 Feb 2025 01:52:31 +0000 (09:52 +0800)
Avoids breakage in nix flake build introduced by b0569130c5e9c671152c913d82803b7c2f014ff9

ggml/src/ggml-metal/ggml-metal.m

index c63dbad201bea87d695bf33ec507726e71e4daa7..944d90af3443204eee8e28b78e5d98182289c921 100644 (file)
 // max number of MTLCommandBuffer used to submit a graph for processing
 #define GGML_METAL_MAX_COMMAND_BUFFERS 8
 
+#ifndef TARGET_OS_VISION
+#define TARGET_OS_VISION 0
+#endif
+
 // create residency sets only on macOS >= 15.0
 #if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
     TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \