MLX
Loading...
Searching...
No Matches
distributed_impl.h
Go to the documentation of this file.
1// Copyright © 2024 Apple Inc.
2
3#pragma once
4
6
8
9/* Return the communication stream. */
11
12/* Perform an all reduce sum operation */
13void all_sum(Group group, const array& input, array& output);
14
15/* Perform an all gather operation */
16void all_gather(Group group, const array& input, array& output);
17
19void send(Group group, const array& input, int dst);
20
22void recv(Group group, array& out, int src);
23
24} // namespace mlx::core::distributed::detail
Definition array.h:23
Definition distributed_impl.h:7
void recv(Group group, array &out, int src)
Recv an array from the src rank.
void all_sum(Group group, const array &input, array &output)
void send(Group group, const array &input, int dst)
Send an array to the dst rank.
void all_gather(Group group, const array &input, array &output)
Definition stream.h:9
A distributed::Group represents a group of independent mlx processes that can communicate.
Definition distributed.h:19