-
Notifications
You must be signed in to change notification settings - Fork 40
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
Added Kernel Launch Op names for AMD GPUs #171
base: main
Are you sure you want to change the base?
Conversation
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Thank you for sending this PR @spandoesai ! But may I ask you to have a test plan with data or test cases? |
Hey @JoongunPark, thanks for the comment. I have updated the PR description with the test plan and the cases I have tried the code on. Let me know if you need any more information. Thanks! |
Thank you so much, @spandoesai ! |
Hey @JoongunPark, you can find the traces along with the scripts that I used in this zip file: Let me know what you find. Thanks! |
Hi @spandoesai , I got below error while testing. Installation
Command
Error
The error is from HTA I think. But if we remove --rank option, will raise an error on Chakra size. |
Summary
Added Kernel Op names from HIP such as hipLaunchKernel, hipMemCpy, etc so that Chakra can work with AMD Traces.
Detailed Description
In the Chakra Trace Linker, the is_kernel_launch_op() checks if a given op is a kernel launch op by comparing the op name against a set of cuda specific launch kernel names. In order for Chakra to work with AMD Kineto Traces, this has been updated to include the corresponding HIP launch event names. This has been done in such a way that it does not disrupt the original execution for Nvidia devices.
Test Plan:
The commit passes all the GitHub automation tests.
For verifying correctness, three models were profiled for one inference run on an AMD Instinct MI250 GPU and the chakra linker was used on the generated ET and Kineto traces:
Command:
Final Output: (without any warnings)