diff --git a/mlx/backend/metal/no_metal.cpp b/mlx/backend/metal/no_metal.cpp index d8608d1f8..b6142b280 100644 --- a/mlx/backend/metal/no_metal.cpp +++ b/mlx/backend/metal/no_metal.cpp @@ -2,10 +2,14 @@ #include -#include "mlx/backend/metal.h" +#include "mlx/backend/metal/metal.h" namespace mlx::core::metal { +bool is_available() { + return false; +} + void start_capture(std::string) {} void stop_capture() {} diff --git a/mlx/backend/no_gpu/allocator.cpp b/mlx/backend/no_gpu/allocator.cpp index a8b260b6b..320d1a267 100644 --- a/mlx/backend/no_gpu/allocator.cpp +++ b/mlx/backend/no_gpu/allocator.cpp @@ -6,9 +6,9 @@ #include "mlx/allocator.h" #ifdef __APPLE__ -#include "mlx/backend/no_metal/apple_memory.h" +#include "mlx/backend/no_gpu/apple_memory.h" #elif defined(__linux__) -#include "mlx/backend/no_metal/linux_memory.h" +#include "mlx/backend/no_gpu/linux_memory.h" #else size_t get_memory_size() { return 0;