We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43957ef commit 617d880Copy full SHA for 617d880
ggml/CMakeLists.txt
@@ -42,7 +42,12 @@ option(GGML_BACKEND_DL "ggml: build backends as dynamic libraries (requires BU
42
# TODO: mark all options as advanced when not GGML_STANDALONE
43
44
if (APPLE)
45
- set(GGML_METAL_DEFAULT ON)
+ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
46
+ # Metal is not supported on Intel CPUs.
47
+ set(GGML_METAL_DEFAULT OFF)
48
+ else()
49
+ set(GGML_METAL_DEFAULT ON)
50
+ endif()
51
set(GGML_BLAS_DEFAULT ON)
52
set(GGML_BLAS_VENDOR_DEFAULT "Apple")
53
else()
0 commit comments