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
void
eval
(
array
& arr);
18
void
finalize
(
Stream
s);
19
void
synchronize
(
Stream
s);
20
21
}
// namespace mlx::core::metal
array.h
mlx::core::array
Definition
array.h:24
mlx::core::metal
Definition
allocator.h:13
mlx::core::metal::new_scoped_memory_pool
std::unique_ptr< void, std::function< void(void *)> > new_scoped_memory_pool()
mlx::core::metal::finalize
void finalize(Stream s)
mlx::core::metal::eval
void eval(array &arr)
mlx::core::metal::new_stream
void new_stream(Stream stream)
mlx::core::synchronize
void synchronize()
stream.h
mlx::core::Stream
Definition
stream.h:9
mlx
backend
metal
metal_impl.h
Generated by
1.13.2