-
Notifications
You must be signed in to change notification settings - Fork 251
Add support for oneCCL and Synchronization events. #1335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
33f1850
8fd8eff
f4b4c93
4b7d3de
32fb645
6871698
4e12909
51a83ee
4cde5a1
38efe31
ff15033
477dea0
7d36e18
52d795a
057ef30
8d173de
7ce741e
afcb0ed
274a559
7aee399
66ea51c
1037218
e9c88e4
3bbe1ac
014433b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| */ | ||
|
|
||
| #include "XpuptiActivityApi.h" | ||
| #include "Logger.h" | ||
|
|
||
| #include <chrono> | ||
| #include <stdexcept> | ||
|
|
@@ -260,6 +261,20 @@ void XpuptiActivityApi::enableXpuptiActivities( | |
| XPUPTI_CALL(ptiViewEnable(PTI_VIEW_COLLECTION_OVERHEAD)); | ||
| break; | ||
|
|
||
| #if PTI_VERSION_AT_LEAST(0, 17) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you be more precise here? This PR have 7 hits with
I think that I can't use @moksiuc design here. @moksiuc could you confirm that?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At first glance I don't see how new code could be extracted to separate files or classes except separate Handlers file. |
||
| case ActivityType::COLLECTIVE_COMM: { | ||
| auto rc = ptiViewEnable(PTI_VIEW_COMMUNICATION); | ||
| if (rc != PTI_SUCCESS) { | ||
| LOG(WARNING) << "Failed to enable PTI_VIEW_COMMUNICATION: " | ||
| << ptiResultTypeToString(rc); | ||
| } | ||
| break; | ||
| } | ||
| #endif | ||
| case ActivityType::XPU_SYNC: | ||
| XPUPTI_CALL(ptiViewEnable(PTI_VIEW_DEVICE_SYNCHRONIZATION)); | ||
| break; | ||
|
|
||
| default: | ||
| break; | ||
| } | ||
|
|
@@ -304,6 +319,20 @@ void XpuptiActivityApi::disablePtiActivities( | |
| XPUPTI_CALL(ptiViewDisable(PTI_VIEW_COLLECTION_OVERHEAD)); | ||
| break; | ||
|
|
||
| #if PTI_VERSION_AT_LEAST(0, 17) | ||
| case ActivityType::COLLECTIVE_COMM: { | ||
| auto rc = ptiViewDisable(PTI_VIEW_COMMUNICATION); | ||
| if (rc != PTI_SUCCESS) { | ||
| LOG(WARNING) << "Failed to disable PTI_VIEW_COMMUNICATION: " | ||
| << ptiResultTypeToString(rc); | ||
| } | ||
| break; | ||
| } | ||
| #endif | ||
| case ActivityType::XPU_SYNC: | ||
| XPUPTI_CALL(ptiViewDisable(PTI_VIEW_DEVICE_SYNCHRONIZATION)); | ||
| break; | ||
|
|
||
| default: | ||
| break; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tsocha with this PR #1337 , do we still need to add the flag here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1337 Remove only part of
HAS_XPUPTIusage.My change fix the logging of this variable.
Currently it always produce empty string in the logs.