Distributed helpers#
Distributed (multi-GPU) setup, process group accessors, and data
partitioning utilities. These are available in the
torch_harmonics.distributed subpackage.
See the distributed guide for a complete
walkthrough.
Setup and teardown#
Initialize the torch-harmonics distributed backend. |
|
Tear down the torch-harmonics distributed backend. |
|
Return |
|
Return |
|
Return |
Process group accessors#
Return the polar (latitudinal) process group registered by |
|
Return this rank's index within the polar group (0 if not distributed). |
|
Return the number of ranks in the polar group (1 if not distributed). |
|
Return the azimuth (longitudinal) process group registered by |
|
Return this rank's index within the azimuth group (0 if not distributed). |
|
Return the number of ranks in the azimuth group (1 if not distributed). |
Data partitioning#
Compute balanced chunk sizes for distributing a dimension across ranks. |
|
Split a tensor along a given dimension into balanced chunks. |