MLX
 
Loading...
Searching...
No Matches
ops.h
Go to the documentation of this file.
1// Copyright © 2024 Apple Inc.
2
3#pragma once
4
5#include <optional>
6
8#include "mlx/utils.h"
9
10namespace mlx::core::distributed {
11
13 const array& x,
14 std::optional<Group> group = std::nullopt,
15 StreamOrDevice s = {});
16
18 const array& x,
19 std::optional<Group> group = std::nullopt,
20 StreamOrDevice S = {});
21
23 const array& x,
24 int dst,
25 std::optional<Group> group = std::nullopt,
26 StreamOrDevice s = {});
27
29 Shape shape,
30 Dtype dtype,
31 int src,
32 std::optional<Group> group = std::nullopt,
33 StreamOrDevice s = {});
34
36 const array& x,
37 int src,
38 std::optional<Group> group = std::nullopt,
39 StreamOrDevice s = {});
40
41} // namespace mlx::core::distributed
Definition array.h:24
Definition distributed.h:9
array recv_like(const array &x, int src, std::optional< Group > group=std::nullopt, StreamOrDevice s={})
array send(const array &x, int dst, std::optional< Group > group=std::nullopt, StreamOrDevice s={})
array all_sum(const array &x, std::optional< Group > group=std::nullopt, StreamOrDevice s={})
array all_gather(const array &x, std::optional< Group > group=std::nullopt, StreamOrDevice S={})
array recv(Shape shape, Dtype dtype, int src, std::optional< Group > group=std::nullopt, StreamOrDevice s={})
std::vector< ShapeElem > Shape
Definition array.h:21
std::variant< std::monostate, Stream, Device > StreamOrDevice
Definition utils.h:15
Definition dtype.h:13