Introduce XPU scope profiler extending existing XPU profiler plugin#1174
Introduce XPU scope profiler extending existing XPU profiler plugin#1174moksiuc wants to merge 109 commits into
Conversation
|
@moksiuc It's great that we are going to update our PTI integration code, and introduce new profiler path.
|
|
For sure not in this PR. I'll add this to our list of tasks. |
Extracted clean up and adding config for scope profiler to separate PR's. |
- place of config initialization - removal of passing unused C compiler flag into test cmake file
|
@moksiuc Let's close this PR. |
|
@gujinghui this is the core of the scope profiler. When 2 smaller parts are merged this one would have only core profiler left. |
This reverts commit 8d9b899.
|
@divyanshk @scotts all comments have been addressed. Could you help review again? Thanks. |
divyanshk
left a comment
There was a problem hiding this comment.
Thanks for addressing the comments! Looks good to me!
|
Failure in the test |
|
@scotts Could you help review this PR again? We already addressed all comments. Thanks. |
|
@scotts @divyanshk Can we merge? |
|
@divyanshk has imported this pull request. If you are a Meta employee, you can view this in D103032091. |
|
@divyanshk merged this pull request in d636a94. |
Includes the following commits: - Replace LIBKINETO_NO* build flags with KINETO_BACKEND (pytorch/kineto#1388) 7739225 - Add git fetch <path_to_kineto_repo> main (pytorch/kineto#1384) 63cc35e - Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1386) b40959c - Introduce XPU scope profiler extending existing XPU profiler plugin (pytorch/kineto#1174) d636a94 - Refactor CI to be more fine-grain (pytorch/kineto#1385) f78048c Pull Request resolved: #182973 Approved by: https://github.com/divyanshk
Includes the following commits: - Replace LIBKINETO_NO* build flags with KINETO_BACKEND (pytorch/kineto#1388) 7739225 - Add git fetch <path_to_kineto_repo> main (pytorch/kineto#1384) 63cc35e - Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1386) b40959c - Introduce XPU scope profiler extending existing XPU profiler plugin (pytorch/kineto#1174) d636a94 - Refactor CI to be more fine-grain (pytorch/kineto#1385) f78048c Pull Request resolved: pytorch#182973 Approved by: https://github.com/divyanshk
Includes the following commits: - Replace LIBKINETO_NO* build flags with KINETO_BACKEND (pytorch/kineto#1388) 7739225 - Add git fetch <path_to_kineto_repo> main (pytorch/kineto#1384) 63cc35e - Daily `arc lint --take CLANGFORMAT` (pytorch/kineto#1386) b40959c - Introduce XPU scope profiler extending existing XPU profiler plugin (pytorch/kineto#1174) d636a94 - Refactor CI to be more fine-grain (pytorch/kineto#1385) f78048c Pull Request resolved: pytorch#182973 Approved by: https://github.com/divyanshk
Summary:
As XPU became a PyTorch built-in device, the profiler support is indispensable part of functionality completeness. In this PR, the XPU scope profiler is introduced by extending existing XPU profiler plugin. The XPU scope profiler is built on the foundation of intel PTI toolkit (https://github.com/intel/pti-gpu), and underlying SYCL runtime. It allows to gather XPU hardware metrics. The LIBKINETO_NOXPUPTI option is used to enable or disable the whole XPU profiler plugin during kineto build stage.
Changes: