Skip to content

Execution Provider Profiler#8406

Merged
RandySheriffH merged 17 commits into
masterfrom
SharedProfiler
Sep 28, 2021
Merged

Execution Provider Profiler#8406
RandySheriffH merged 17 commits into
masterfrom
SharedProfiler

Conversation

@RandySheriffH
Copy link
Copy Markdown
Contributor

@RandySheriffH RandySheriffH commented Jul 15, 2021

Implement cuda profiler by cupti library. With profiling enabled, all triggerred cuda kernels will be logged.
Correlation between ops and kernels are established along the profiling - in final output, related kernel logs will be placed under the op with the same op_name:
[
...
{"cat" : "Node","pid" :12572,"tid" :9380,"dur" :24,"ts" :6770761,"ph" : "X","name" :"Add_0_fence_before","args" : {"op_name" : "Add"}},
{"cat" : "Kernel","pid" :-1,"tid" :-1,"dur" :4,"ts" :6771333,"ph" : "X","name" :"BinaryElementWiseKernel","args" : {"op_name" : "Add","stream" : "13","block_x" : "256","grid_x" : "1","grid_y" : "1","grid_z" : "1","block_y" : "1","block_z" : "1"}},
...
]

@RandySheriffH RandySheriffH requested a review from a team as a code owner July 15, 2021 21:32
@RandySheriffH RandySheriffH changed the title [WIP] Execution Provider Profiler Execution Provider Profiler Sep 24, 2021
@@ -1,2 +1,2 @@
set PATH=C:\azcopy;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin;C:\local\cudnn-11.4-windows-x64-v8.2.2.26\cuda\bin;%PATH%
set PATH=C:\azcopy;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\extras\CUPTI\lib64;C:\local\cudnn-11.4-windows-x64-v8.2.2.26\cuda\bin;%PATH%
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may get this file unchanged. The file is not referenced anywhere.

Copy link
Copy Markdown
Contributor

@HectorSVC HectorSVC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@RandySheriffH RandySheriffH merged commit 058108b into master Sep 28, 2021
@RandySheriffH RandySheriffH deleted the SharedProfiler branch September 28, 2021 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants