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
11
namespace
mlx::core::metal
{
12
13
void
new_stream
(
Stream
stream);
14
15
std::unique_ptr<void, std::function<void(
void
*)>>
new_scoped_memory_pool
();
16
17
std::function<void()>
make_task
(
array
arr,
bool
signal);
18
19
std::function<void()>
make_synchronize_task
(
20
Stream
s,
21
std::shared_ptr<std::promise<void>> p);
22
23
}
// namespace mlx::core::metal
array.h
mlx::core::array
Definition
array.h:24
mlx::core::metal
Definition
allocator.h:13
mlx::core::metal::make_task
std::function< void()> make_task(array arr, bool signal)
mlx::core::metal::new_scoped_memory_pool
std::unique_ptr< void, std::function< void(void *)> > new_scoped_memory_pool()
mlx::core::metal::new_stream
void new_stream(Stream stream)
mlx::core::metal::make_synchronize_task
std::function< void()> make_synchronize_task(Stream s, std::shared_ptr< std::promise< void > > p)
stream.h
mlx::core::Stream
Definition
stream.h:9
mlx
backend
metal
metal_impl.h
Generated by
1.13.2