This repository has been archived by the owner on Jul 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make CUDA GDR auto-detect the mapping from GPUs to InfiniBand NICs (#258
) Summary: Pull Request resolved: #258 GPU machines with InfiniBand often have several NICs, and GPUs need to be carefully mapped to them to avoid bottlenecks and congestion on the PCI links. Until now, for simplicity, we asked the user to provide such mapping when constructing the context, but this of course isn't practical. In this diff I introduce auto-detection for that mapping, by associating a GPU with the NIC that shares the longest prefix in the PCI "path". I'm keeping the option to override this auto-detection and still manually specify a mapping, as a sort of "killswitch" should this logic not work for everyone. Reviewed By: beauby Differential Revision: D25824239 fbshipit-source-id: 190254c342783e6f5facca7ca1717b863b08168d
- Loading branch information
1 parent
cd1c598
commit ea17890
Showing
5 changed files
with
153 additions
and
11 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
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