Skip to content

Conversation

@naromero77amd
Copy link
Collaborator

@naromero77amd naromero77amd commented Mar 25, 2025

This PR is cleanup only. There are no feature changes or bug fixes.

We create a TunableOp context manager for setting up and cleanup. We re-write TunableOp unit tests in terms of this context manager. Ultimately reduces the amount of copy-paste code.

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 25, 2025

🔗 Helpful Links

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

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 94b6284 with merge base db92d0f (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

@pytorch-bot pytorch-bot bot added module: rocm AMD GPU support for Pytorch topic: not user facing topic category labels Mar 25, 2025
@naromero77amd naromero77amd requested a review from jeffdaily March 25, 2025 05:49
@pytorch-bot pytorch-bot bot added the ciflow/rocm Trigger "default" config CI on ROCm label Mar 25, 2025
@naromero77amd naromero77amd marked this pull request as draft March 25, 2025 05:51
@naromero77amd naromero77amd marked this pull request as ready for review March 25, 2025 15:08
Comment on lines 4681 to 4683
tunableop_ctx = self._tunableop_ctx

with tunableop_ctx():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason this isn't a one-liner? Would need to fix here and elsewhere.

Suggested change
tunableop_ctx = self._tunableop_ctx
with tunableop_ctx():
with self._tunableop_ctx():

@pytorch-bot pytorch-bot bot removed the ciflow/rocm Trigger "default" config CI on ROCm label Mar 25, 2025
@naromero77amd naromero77amd added the ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 label Mar 25, 2025
@naromero77amd naromero77amd requested a review from jeffdaily March 25, 2025 18:42
@naromero77amd
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 25, 2025
@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

@naromero77amd naromero77amd deleted the tunableop_ut_contextlib branch March 26, 2025 15:44
amathewc pushed a commit to amathewc/pytorch that referenced this pull request Apr 17, 2025
…49930)

This PR is cleanup only. There are no feature changes or bug fixes.

We create a TunableOp context manager for setting up and cleanup. We re-write TunableOp unit tests in terms of this context manager. Ultimately reduces the amount of copy-paste code.

Pull Request resolved: pytorch#149930
Approved by: https://github.com/jeffdaily
naromero77amd added a commit to ROCm/pytorch that referenced this pull request May 8, 2025
…49930)

This PR is cleanup only. There are no feature changes or bug fixes.

We create a TunableOp context manager for setting up and cleanup. We re-write TunableOp unit tests in terms of this context manager. Ultimately reduces the amount of copy-paste code.

Pull Request resolved: pytorch#149930
Approved by: https://github.com/jeffdaily

(cherry picked from commit 45b1173)
pruthvistony pushed a commit to ROCm/pytorch that referenced this pull request May 8, 2025
…ledGEMM rowwise fix (#2106)

Align TunableOp UTs, features, and bug fixes with upstream PyTorch main

UTs:
pytorch#148982
pytorch#149930
pytorch#150142
pytorch#150463

Feature: offline tuning for submatrices:
pytorch#151138

Bug Fix: ScaledGEMM rowwise
pytorch#152403

---------

Co-authored-by: Jeff Daily <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/trunk Trigger trunk jobs on your pull request Merged module: rocm AMD GPU support for Pytorch open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants