Skip to content

Commit 617d880

Browse files
committed
GGML: Disable Metal on Intel CPU
1 parent 43957ef commit 617d880

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ggml/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ option(GGML_BACKEND_DL "ggml: build backends as dynamic libraries (requires BU
4242
# TODO: mark all options as advanced when not GGML_STANDALONE
4343

4444
if (APPLE)
45-
set(GGML_METAL_DEFAULT ON)
45+
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()
4651
set(GGML_BLAS_DEFAULT ON)
4752
set(GGML_BLAS_VENDOR_DEFAULT "Apple")
4853
else()

0 commit comments

Comments
 (0)