Ios compile (#784)

* try to fix build for ios

* skip cpu compile

* fix namespace

* fix namespace

* Use CMake for platform specific cpu compile

---------

Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com>
This commit is contained in:
Awni Hannun
2024-03-04 20:02:26 -08:00
committed by GitHub
parent 6686e61ca4
commit 7b463ffb07
8 changed files with 481 additions and 415 deletions

11
mlx/compile_impl.h Normal file
View File

@@ -0,0 +1,11 @@
// Copyright © 2023-2024 Apple Inc.
#pragma once
#include "mlx/device.h"
namespace mlx::core::detail {
bool compile_available_for_device(const Device& device);
}