-
Notifications
You must be signed in to change notification settings - Fork 177
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
ROCm Sparse Marlin Kernels #1206
base: main
Are you sure you want to change the base?
Conversation
ROCm build infrastructure
[ROCm] Enable Tiled layout extension and minor changes to setup
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1206
Note: Links to docs will display an error until the docs builds have been completed. ❌ 11 New FailuresAs of commit 00bc94d with merge base ce4822b (): NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -46,9 +46,11 @@ def read_version(file_path="version.txt"): | |||
CUDAExtension, |
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.
I think you might enjoy stack based PR development https://github.com/modularml/stack-pr
@@ -19,6 +19,28 @@ | |||
#include "base.h" | |||
|
|||
namespace torchao { | |||
|
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.
@xw285cornell looking for some quick advice, do you recommend we support AMD by adding conditional compilation flags to our existing cuda kernels or be OK with some more copy paste?
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.
Chatted offline and indeed ifdefs are the way to go
Do you have performance numbers by any chance relative to fp16? wanna make sure the performance improvements are competitive with CUDA |
still WIP, but would you share the benchmark you guys are using? will try that on mi300x when the PR is ready. |
Ok holler at me again whenever you need a review. Really excited to see this land |
For benchmarking it is a little ad hoc the best place for this today would be to verify on: https://github.com/pytorch/ao/blob/main/torchao/_models/llama/generate.py |
[WIP] Built on top pf #1201. This pull request introduces support for ROCm (Radeon Open Compute) for sparse marling kernel in addition to CUDA, enabling the code to run on AMD GPUs.
The main changes involve conditional compilation to handle differences between CUDA and ROCm, as well as adding ROCm-specific intrinsics for MI300x.
co-author : @lcskrishna
Key changes include:
ROCm Support in
setup.py
:Conditional Compilation in CUDA Source Files:
ROCm-specific Implementations:
Next: