[RELEASE] [AMD] Additional AMD cherry-picks#4175
Merged
ptillet merged 7 commits intotriton-lang:release/3.0.xfrom Jun 20, 2024
Merged
[RELEASE] [AMD] Additional AMD cherry-picks#4175ptillet merged 7 commits intotriton-lang:release/3.0.xfrom
ptillet merged 7 commits intotriton-lang:release/3.0.xfrom
Conversation
…ang#4126) We have identified a 20% perf regression in our downstream flash attention perf kernel after switching to linear layout. Initial analysis shows register pressure is increased to cause spills. Further analysis is still ongoing. So this commit introduces a minimal way to selectively disable linear layout only on AMD backend to avoid affecting NVIDIA backend while continuing bring it up on AMD side. (cherry picked from commit e8bc45d)
This guards us against unsupported cases without asserts. Along the way slightly improved the MFMA/WMMA doc a bit. (cherry picked from commit 9a0a7c2)
This PR enables support of 3d dot for RDNA GPUs. (cherry picked from commit 100e2aa)
- Pack bf16 elements to int16 vectors; - Add a lit test; - BF16 testcases from test_core.py::test_dot are passed for now; The core Triton is a small number of people, and we receive many PRs (thank you!). To help us review your code more quickly, **if you are a new contributor (less than 3 PRs merged) we ask that you complete the following tasks and include the filled-out checklist in your PR description.** Complete the following tasks before sending your PR, and replace `[ ]` with `[x]` to indicate you have done them. - [x] I am not making a trivial change, such as fixing a typo in a comment. - [x] I have written a PR description following these [rules](https://cbea.ms/git-commit/#why-not-how). - [x] I have run `pre-commit run --from-ref origin/main --to-ref HEAD`. - Select one of the following. - [x] I have added tests. - `/test` for `lit` tests - Select one of the following. - [x] The `lit` tests I have added follow these [best practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices), including the "tests should be minimal" section. (Usually running Python code and using the instructions it generates is not minimal.) Signed-off-by: Ilya Veselov <iveselov.nn@gmail.com> (cherry picked from commit 4a1ea8e)
1. Extract duplicated code into GPUProfiler.h 2. Track finished correlation ids for both cupti and amd profilers (cherry picked from commit 328b86d)
…ng#4090) Roctracer reports (global) agent ids for the location of async ops, e.g. kernels and copies. The profiler would be better suited with gpu indexes (zero based). Created a mapping function to apply to values stored in KernelMetric::DeviceId. Caveat: if devices are hidden using HIP_VISIBLE_DEVICES then the hip device id, e.g. via hipGetDevice()/hipSetDevice(), will not match the reported unfiltered id. Additional support in hip will be needed to map through the filtering correctly. --------- Co-authored-by: Keren Zhou <robinho364@gmail.com> (cherry picked from commit 60613fb)
This PR adds Proton HIP GPU utilization metrics and an associated test. (cherry picked from commit c1776fa)
zhanglx13
approved these changes
Jun 20, 2024
antiagainst
approved these changes
Jun 20, 2024
antiagainst
requested changes
Jun 20, 2024
Member
antiagainst
left a comment
There was a problem hiding this comment.
Actually blocking for now to have some additional verification.
antiagainst
approved these changes
Jun 20, 2024
Member
antiagainst
left a comment
There was a problem hiding this comment.
We are fine now. I don't think I can merge; @ThomasRaoux or @ptillet can you help to merge? Probably using rebase and merge to keep each commit separate for a clean history.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry picks for release/3.0.x
General:
for RDNA:
Proton HIP PRs: