Skip to content

Conversation

@tenpercent
Copy link
Collaborator

@tenpercent tenpercent commented Jul 11, 2024

Add functional support for torch.addmm with CK backend. See also #125453

Implementation details

  1. It turns out we can use the same template between addmm and matmul; essentially, matmul is addmm with empty bias
  2. The Python generator in CK was updated to generate the shared cpp template. The pip package can be installed from pip install git+https://github.com/rocm/composable_kernel@add-addmm and will be merged into develop branch after this PR lands to avoid breaking the current matmul

Testing

pytest test/inductor/test_ck_backend.py -k addmm

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov @zjing14 @asroy @nmacchioni @aska-0096

@pytorch-bot
Copy link

pytorch-bot bot commented Jul 11, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/130576

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit 7139093 with merge base e0514a5 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added module: inductor module: rocm AMD GPU support for Pytorch labels Jul 11, 2024
@tenpercent tenpercent force-pushed the ck-addmm branch 2 times, most recently from f9b428e to 1b6db4c Compare July 15, 2024 19:45
@tenpercent tenpercent marked this pull request as ready for review July 15, 2024 21:36
@colesbury colesbury requested a review from jeffdaily July 16, 2024 00:31
@colesbury colesbury added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jul 16, 2024
@aakhundov aakhundov added the topic: not user facing topic category label Jul 24, 2024
@aakhundov
Copy link
Contributor

@tenpercent the linter seems failing, please take a look.

Copy link
Member

@zoranzhao zoranzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments

@tenpercent
Copy link
Collaborator Author

@pytorchbot rebase -s

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased ck-addmm onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout ck-addmm && git pull --rebase)

@pytorch-bot pytorch-bot bot added ciflow/inductor ciflow/rocm Trigger "default" config CI on ROCm labels Jul 25, 2024
@tenpercent tenpercent requested a review from chenyang78 August 1, 2024 20:45
Copy link

@chenyang78 chenyang78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the lint issues. Also, seems there are some rocm ci failures. Thanks!

@tenpercent
Copy link
Collaborator Author

@pytorchbot rebase -s

@tenpercent
Copy link
Collaborator Author

@pytorchbot label ciflow/trunk

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 2, 2024
@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Rebase failed due to Command git -C /home/runner/work/pytorch/pytorch rebase refs/remotes/origin/viable/strict pull/130576/head returned non-zero exit code 1

Rebasing (1/37)
Rebasing (2/37)
Rebasing (3/37)
Auto-merging torch/_inductor/config.py
CONFLICT (content): Merge conflict in torch/_inductor/config.py
Auto-merging torch/_inductor/utils.py
error: could not apply 3ba23799f2... rename supported_arch to ck_supported_arch in rocm config
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Could not apply 3ba23799f2... rename supported_arch to ck_supported_arch in rocm config

Raised by https://github.com/pytorch/pytorch/actions/runs/10223394805

@tenpercent
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/rocm Trigger "default" config CI on ROCm ciflow/trunk Trigger trunk jobs on your pull request Merged module: inductor module: rocm AMD GPU support for Pytorch open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants