Commit 5900e32 1 parent bacced5 commit 5900e32 Copy full SHA for 5900e32
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ option(MLX_BUILD_TESTS "Build tests for mlx" ON)
14
14
option (MLX_BUILD_EXAMPLES "Build examples for mlx" ON )
15
15
option (MLX_BUILD_BENCHMARKS "Build benchmarks for mlx" OFF )
16
16
option (MLX_BUILD_PYTHON_BINDINGS "Build python bindings for mlx" OFF )
17
- option (MLX_BUILD_METAL "Build metal backend" ON )
17
+ option (MLX_BUILD_METAL "Build metal backend" OFF )
18
18
option (MLX_BUILD_CPU "Build cpu backend" ON )
19
19
option (MLX_METAL_DEBUG "Enhance metal debug workflow" OFF )
20
20
option (MLX_ENABLE_X64_MAC "Enable building for x64 macOS" OFF )
@@ -49,15 +49,18 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
49
49
else ()
50
50
message (WARNING "Building for x86_64 arch is not officially supported." )
51
51
endif ()
52
- set (MLX_BUILD_METAL OFF )
53
52
elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64" )
54
- set (MLX_BUILD_ARM ON )
53
+ set (MLX_BUILD_METAL ON )
55
54
endif ()
56
55
57
56
else ()
58
57
message (WARNING "MLX is prioritised for Apple silicon systems using macOS." )
59
58
endif ()
60
59
60
+ if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64" )
61
+ set (MLX_BUILD_ARM ON )
62
+ endif ()
63
+
61
64
# ----------------------------- Lib -----------------------------
62
65
63
66
include (FetchContent)
You can’t perform that action at this time.
0 commit comments