realm: identify shared_peers using uuid
This PR contains:
- updating the
RuntimeImpl::create_shared_peers
function to usecat /proc/sys/kernel/random/boot_id
(linux) andsystem_profiler SPHardwareDataType
(macOS) to identify which ranks are on the same physical nodes, instead of using ipc mailbox. Thanks to the advice from @cperry4, apparently, this approach gives accurate results even for containers. - move the
RuntimeImpl::create_shared_peers
after network::attach because we need the allgather in the new implementation, but it won't be available before attach in the GASNet1 module. - add the implementation of allgather for all network modules.
Edited by Wei Wu