mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-07-14 19:27:20 +00:00
Add IPC domain rank detection (#824)
Expose the number of ranks in each GPU IPC domain through Bootstrap and Python bindings, using NVML fabric information on CUDA when available and falling back to host-local ranks otherwise. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -56,6 +56,7 @@ void register_core(nb::module_& m) {
|
||||
.def("get_rank", &Bootstrap::getRank)
|
||||
.def("get_n_ranks", &Bootstrap::getNranks)
|
||||
.def("get_n_ranks_per_node", &Bootstrap::getNranksPerNode)
|
||||
.def("get_n_ranks_per_ipc_domain", &Bootstrap::getNranksPerIpcDomain)
|
||||
.def(
|
||||
"send",
|
||||
[](Bootstrap* self, uintptr_t ptr, size_t size, int peer, int tag) {
|
||||
|
||||
Reference in New Issue
Block a user