mlx/mlx/backend/no_metal/metal.cpp

24 lines
520 B
C++
Raw Normal View History

2023-12-01 03:12:53 +08:00
// Copyright © 2023 Apple Inc.
2023-11-30 02:30:41 +08:00
#include <stdexcept>
#include "mlx/backend/metal/metal.h"
namespace mlx::core::metal {
void new_stream(Stream) {}
2023-12-24 11:18:10 +08:00
std::shared_ptr<void> new_scoped_memory_pool() {
return nullptr;
}
2023-11-30 02:30:41 +08:00
std::function<void()> make_task(
array& arr,
std::vector<std::shared_future<void>> deps,
std::shared_ptr<std::promise<void>> p,
bool retain_graph) {
throw std::runtime_error(
"[metal::make_task] Cannot make GPU task without metal backend");
}
} // namespace mlx::core::metal