-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cpp): skip register metal backend on os simulator
- Loading branch information
Showing
7 changed files
with
22 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- ggml-backend.cpp.orig 2024-11-02 18:37:57 | ||
+++ ggml-backend.cpp 2024-11-02 18:39:36 | ||
@@ -575,8 +575,11 @@ | ||
register_backend(lm_ggml_backend_cuda_reg()); | ||
#endif | ||
#ifdef LM_GGML_USE_METAL | ||
+#include <TargetConditionals.h> | ||
+#if !TARGET_OS_SIMULATOR | ||
register_backend(lm_ggml_backend_metal_reg()); | ||
#endif | ||
+#endif | ||
#ifdef LM_GGML_USE_SYCL | ||
register_backend(lm_ggml_backend_sycl_reg()); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters