mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-04 15:04:40 +08:00
Add docs for the distributed namespace (#1184)
This commit is contained in:

committed by
GitHub

parent
578842954c
commit
0163a8e57a
@@ -16,7 +16,7 @@ int main() {
|
||||
std::cout << global_group.rank() << " / " << global_group.size() << std::endl;
|
||||
|
||||
array x = ones({10});
|
||||
array out = distributed::all_reduce_sum(x, global_group);
|
||||
array out = distributed::all_sum(x, global_group);
|
||||
|
||||
std::cout << out << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user