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.
move ntrace patch to third-party (exclude ext_tag) (NVIDIA#4)
Summary: Pull Request resolved: facebookresearch#4 Introduce ntrace into NCCL to trace important IB events per collective communication. It requires a separate module ntrace_rt to enable in Makefile based build. For now, ENABLE_NTRACE is always off when building from Makefile. Co-author: Xianghuai Zhang <[email protected]> Reviewed By: kingchc Differential Revision: D38637718 fbshipit-source-id: 94f8dd163df18cd6fe4e4abc811570cb159b876f
- Loading branch information
1 parent
6e07cc8
commit 38e738a
Showing
4 changed files
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* (c) Facebook, Inc. and its affiliates. Confidential and proprietary. */ | ||
|
||
#ifndef NCCL_NTRACE_PROFILER_H_ | ||
#define NCCL_NTRACE_PROFILER_H_ | ||
|
||
#ifdef ENABLE_NTRACE | ||
#include "ntrace_rt.h" | ||
|
||
#define NTRACE_PROFILING_RECORD(profile_state, ...) \ | ||
do { \ | ||
ntrace_log_##profile_state(__VA_ARGS__); \ | ||
} while (0) | ||
|
||
static inline void ntraceProfilingDump(void) { | ||
ntrace_dump(); | ||
} | ||
|
||
#else | ||
#define NTRACE_PROFILING_RECORD(profile_state, ...) \ | ||
do { /* no op */ \ | ||
} while (0) | ||
|
||
static inline void ntraceProfilingDump(void){/* no op */}; | ||
#endif | ||
|
||
#endif /* end of NCCL_NTRACE_PROFILER_H_ */ |
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