mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-19 23:51:14 +08:00
fix no_gpu build
This commit is contained in:
parent
f6a23c44e3
commit
6151995219
@ -2,10 +2,14 @@
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#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() {}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user