Spaces:
Running
Running
Commit
·
5bdb244
1
Parent(s):
5eb35ab
metal : avoid breaking build when metal API predates TARGET_OS_VISION (llama/11690)
Browse filesAvoids breakage in nix flake build introduced by b0569130c5e9c671152c913d82803b7c2f014ff9
ggml/src/ggml-metal/ggml-metal.m
CHANGED
|
@@ -19,6 +19,10 @@
|
|
| 19 |
// max number of MTLCommandBuffer used to submit a graph for processing
|
| 20 |
#define GGML_METAL_MAX_COMMAND_BUFFERS 8
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
// create residency sets only on macOS >= 15.0
|
| 23 |
#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
|
| 24 |
TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \
|
|
|
|
| 19 |
// max number of MTLCommandBuffer used to submit a graph for processing
|
| 20 |
#define GGML_METAL_MAX_COMMAND_BUFFERS 8
|
| 21 |
|
| 22 |
+
#ifndef TARGET_OS_VISION
|
| 23 |
+
#define TARGET_OS_VISION 0
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
// create residency sets only on macOS >= 15.0
|
| 27 |
#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000 || \
|
| 28 |
TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000 || \
|