MLX
 
Loading...
Searching...
No Matches
metal_impl.h
Go to the documentation of this file.
1// Copyright © 2023-2024 Apple Inc.
2
3#pragma once
4
5#include <future>
6#include <memory>
7
8#include "mlx/array.h"
9#include "mlx/stream.h"
10
11namespace mlx::core::metal {
12
13void new_stream(Stream stream);
14
15std::unique_ptr<void, std::function<void(void*)>> new_scoped_memory_pool();
16
17std::function<void()> make_task(array arr, bool signal);
18
19std::function<void()> make_synchronize_task(
20 Stream s,
21 std::shared_ptr<std::promise<void>> p);
22
23} // namespace mlx::core::metal
Definition array.h:24
Definition allocator.h:13
std::function< void()> make_task(array arr, bool signal)
std::unique_ptr< void, std::function< void(void *)> > new_scoped_memory_pool()
void new_stream(Stream stream)
std::function< void()> make_synchronize_task(Stream s, std::shared_ptr< std::promise< void > > p)
Definition stream.h:9