forked from NVIDIA/nccl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure thread-safety for register timer in ctran mapper (NVIDIA#33)
Summary: When concurrent collective/p2p are sent via multiple NCCL communicators, ctran mapper register/deregister/search paths can be called by multiple threads concurrently. Thus, we need ensure thread-safety for the global timer for registration. This patch fixes it by adding mutex for all accesses to the global variables used. Differential Revision: D51083701
- Loading branch information
1 parent
7eac3ec
commit 5bd01dd
Showing
1 changed file
with
95 additions
and
75 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