Skip to content

[pc] verify max autotune is in generated source code#157650

Closed
bobrenjc93 wants to merge 3 commits intogh/bobrenjc93/513/basefrom
gh/bobrenjc93/513/head
Closed

[pc] verify max autotune is in generated source code#157650
bobrenjc93 wants to merge 3 commits intogh/bobrenjc93/513/basefrom
gh/bobrenjc93/513/head

Conversation

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 4, 2025

🔗 Helpful Links

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

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 7286f30 with merge base c808af5 (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.

[ghstack-poisoned]
@bobrenjc93 bobrenjc93 requested a review from aorenste July 5, 2025 00:45
@bobrenjc93 bobrenjc93 marked this pull request as ready for review July 5, 2025 00:45
self.assertGreater(
do_bench(lambda: baseline(x, y)), do_bench(lambda: optimized(x, y))
)
self.assertTrue("'max_autotune': True" in source_codes[-1])
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it would be a race condition to expect there to always be two...
Consider something like:

self.assertTrue(len(source_codes) == 1 or "'max_autotune': True" not in source_codes[0])
self.assertTrue("'max_autotune': True" in source_codes[-1])

Copy link
Contributor Author

@bobrenjc93 bobrenjc93 Jul 5, 2025

Choose a reason for hiding this comment

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

It actually isn't a race condition since we barrier on the first compile finishing before checking the futures:

        if self.post_compile_data:
            for i, future in enumerate(self.progression_futures):
                if future.done():
                    stage_index = i

@bobrenjc93 bobrenjc93 added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 5, 2025
[ghstack-poisoned]
@bobrenjc93
Copy link
Contributor 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

@github-actions github-actions bot deleted the gh/bobrenjc93/513/head branch August 5, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants