-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable init for daemon cases, remove event profiler code (#1035)
Summary: Pull Request resolved: #1035 Cleans up the initialization for kineto * The current method to init kineto for CUDA builds is to add a callback on CUDA context. But this leads to CUPTI being enabled right from the start. * For the case where profiling daemon is enabled (dynolog), this PR initialized the profiler and config loader always, for both CPU and CUDA builds. This should be safe to do as kineto_init now happens when torch is imported. * Still leaving the CUPTI callback approach above for non dynolog/daemon use cases, this leaves behavior inside Meta unchanged. * Let's start cleaning up Even profiler. From here on is offiically turned off. Will start nuking the files soon. Reviewed By: sanrise Differential Revision: D69285243 fbshipit-source-id: bd04c4837da479599db978178849e121f2a90af1
- Loading branch information
1 parent
9678759
commit 3c3fa42
Showing
1 changed file
with
56 additions
and
93 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