-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[AMD] Fix unhandled profile event in RoctracerProfiler #5252
Conversation
The reason for the unit tests failing was just an undefined event? I feel like the tests shouldn't fail in that case, just not capture the unknown event? |
@@ -135,7 +136,7 @@ void processActivity(RoctracerProfiler::CorrIdToExternIdMap &corrIdToExternId, | |||
const roctracer_record_t *record, bool isAPI, | |||
bool isGraph) { | |||
switch (record->kind) { | |||
case 0x11F1: // Task - kernel enqueued by graph launch | |||
case kHipVdiCommandTask: |
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.
Replacing the magic number is a NFC right? It's just now we have a named variable in the HIP headers?
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.
NFC? The hip headers are included with Triton so there should not be any issues as this is a drop in replacement as the enum maps to the same number.
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.
NFC - no functional change.
It's for an upcoming docker change that bumps ROCm version; see the discussion here #5230 (comment) |
Right, I get that but I'm trying to figure out "what" specifically changes when we bump the ROCm version. Did we change the HIP event which tracks graph launches? |
Fixes proton unit tests when upgrading to rocm 6.2 by adding missing event handlers.
Magic number is replaced with the corresponding enum value which was added by upgrading the HIP headers #5077.
New contributor declaration
I am not making a trivial change, such as fixing a typo in a comment.
I have written a PR description following these
rules.
I have run
pre-commit run --from-ref origin/main --to-ref HEAD
.Select one of the following.
/test
forlit
tests/unittest
for C++ tests/python/test
for end-to-end testsTests already cover the issue
.Select one of the following.
lit
tests.lit
tests I have added follow these best practices,including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)