25 Group(std::shared_ptr<detail::GroupImpl> group) : group_(
std::move(group)) {}
40 const std::shared_ptr<detail::GroupImpl>&
raw_group()
const {
45 std::shared_ptr<detail::GroupImpl> group_{
nullptr};
56Group init(
bool strict =
false,
const std::string& bk =
"any");
Abstract base class of a distributed group implementation.
Definition distributed_impl.h:12
array std(const array &a, bool keepdims, int ddof=0, StreamOrDevice s={})
Computes the standard deviation of the elements of an array.
Definition distributed.h:12
Definition distributed.h:9
Group init(bool strict=false, const std::string &bk="any")
Initialize the distributed backend and return the group containing all discoverable processes.
A distributed::Group represents a group of independent mlx processes that can communicate.
Definition distributed.h:24
Group(std::shared_ptr< detail::GroupImpl > group)
Definition distributed.h:25
Group split(int color, int key=-1) const
Split the group according to the provided color.
const std::shared_ptr< detail::GroupImpl > & raw_group() const
Definition distributed.h:40