Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
inailuig committed Mar 19, 2024
1 parent 23508eb commit bbe5840
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xla/pjrt/cpu/mpi_collectives.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ class MpiCollectivesCommunicator : public CollectivesCommunicator {
class MpiCollectives : public CollectivesInterface {
public:

/*
The user has to explicitly call Init() and Finalize() before and
after use.
For example, using the Python client, this can be achieved with:
collectives = xla_client._xla.make_mpi_collectives()
collectives.Init()
atexit.register(collectives.Finalize)
*/
void Init();
void Finalize();

Expand Down

0 comments on commit bbe5840

Please sign in to comment.