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:
parent
c3db0480bb
commit
902368a06b
1 changed files with 4 additions and 0 deletions
|
@ -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 || \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue