-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the protocol selection logic when the platform file does not specify a protocol. Instead of always defaulting to sendrecv if the user / platform file didn't specify a protocol, try to figure out when rdma is a good default. We still are conservative with enabling the rdma protocol, to avoid changing the default in as many places as posible. With the change, the protocol selection order is: 1. if the user set NCCL_OFI_PROTOCOL, use that. 2. if the platform init set nccl_ofi_selected_protocol, use that. 3. If the rdma protocol reports multiple nics per device and initialized successfully, use that. 4. If the sendrecv protocol initialized successfully, use that. 5. If the rdma protocol initialized successfully, use that. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
- Loading branch information
Showing
6 changed files
with
251 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.