Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[AOTInductor] Fix state of ConstantFolding#153152

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
muchulee8 wants to merge2 commits intogh/muchulee8/61/basefromgh/muchulee8/61/head

Conversation

@muchulee8
Copy link
Contributor

@muchulee8muchulee8 commentedMay 8, 2025
edited
Loading

Stack fromghstack (oldest at bottom):

Summary:
Bug fix for constant folding states. We are not setting the correct state for each updates.
One race condition would be:
(1) All threads obtain the model_exec_lock from main run.
(2) In second round of updated constant buffer, we should have set secondary as INITIALIZED but primary is mistakenly set instead.
(3) run_const_fold get called and an model_exec_lock is obtained, waiting for available at this time.
(4) main run enters INITIALIZED, waiting for unique_lock (which a shared_lock is being held by (3) at this moment)

Test Plan:
TBD

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:Bug fix for constant folding states. We are not setting the correctstate for each updates.One race condition would be:(1) All threads obtain the model_exec_lock from main run.(2) In second round of updated constant buffer, we should have set secondary as INITIALIZED but primary is mistakenly set instead.(3) run_const_fold get called and an model_exec_lock is obtained, waiting for available at this time.(4) main run enters INITIALIZED, waiting for unique_lock (which a shared_lock is being held by (3) at this moment)Test Plan:TBDReviewers:Subscribers:Tasks:Tags:[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-botbot commentedMay 8, 2025
edited
Loading

🔗 Helpful Links

🧪 See artifacts and rendered test results athud.pytorch.org/pr/153152

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit3f4df42 with merge basebfc0920 (image):

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.

Summary:Bug fix for constant folding states. We are not setting the correct state for each updates.One race condition would be:(1) All threads obtain the model_exec_lock from main run.(2) In second round of updated constant buffer, we should have set secondary as INITIALIZED but primary is mistakenly set instead.(3) run_const_fold get called and an model_exec_lock is obtained, waiting for available at this time.(4) main run enters INITIALIZED, waiting for unique_lock (which a shared_lock is being held by (3) at this moment)Test Plan:TBDReviewers:Subscribers:Tasks:Tags:[ghstack-poisoned]
muchulee8 added a commit that referenced this pull requestMay 8, 2025
Summary:Bug fix for constant folding states. We are not setting the correctstate for each updates.One race condition would be:(1) All threads obtain the model_exec_lock from main run.(2) In second round of updated constant buffer, we should have set secondary as INITIALIZED but primary is mistakenly set instead.(3) run_const_fold get called and an model_exec_lock is obtained, waiting for available at this time.(4) main run enters INITIALIZED, waiting for unique_lock (which a shared_lock is being held by (3) at this moment)Test Plan:TBDReviewers:Subscribers:Tasks:Tags:ghstack-source-id:05a225ePull Requestresolved:#153152
@muchulee8muchulee8 requested a review fromchenyang78May 8, 2025 18:08
Copy link
Contributor

@jingshjingsh left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

@chenyang78chenyang78 left a comment

Choose a reason for hiding this comment

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

Nice finding and thanks for fixing this!

@muchulee8
Copy link
ContributorAuthor

@pytorchbot merge

pytorch-bot[bot] reacted with thumbs up emoji

@pytorch-botpytorch-botbot added the ciflow/trunkTrigger trunk jobs on your pull request labelMay 9, 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 thewiki.

Questions? Feedback? Please reach out to thePyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@github-actionsgithub-actionsbot deleted the gh/muchulee8/61/head branchJune 17, 2025 02:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@chenyang78chenyang78chenyang78 approved these changes

@jingshjingshjingsh approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@muchulee8@pytorchmergebot@chenyang78@jingsh

[8]ページ先頭

©2009-2025 Movatter.jp