mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-17 11:37:10 +00:00
metal : avoid breaking build when metal API predates TARGET_OS_VISION (#11690)
Avoids breakage in nix flake build introduced by b0569130c5
This commit is contained in:
@@ -19,6 +19,10 @@
|
|||||||
// max number of MTLCommandBuffer used to submit a graph for processing
|
// max number of MTLCommandBuffer used to submit a graph for processing
|
||||||
#define GGML_METAL_MAX_COMMAND_BUFFERS 8
|
#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
|
// create residency sets only on macOS >= 15.0
|
||||||
#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
|
#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
|
||||||
TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \
|
TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \
|
||||||
|
|||||||
Reference in New Issue
Block a user