Skip to content

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Sep 26, 2024

Stack from ghstack (oldest at bottom):

If we tried to reenter parallel_for, we would deadlock due to trying to acquire the threadpool mutex, which was already held. Removing the mutex (which is unnecessary) didn't fix the problem because pthreadpool has its own internal mutex.

Differential Revision: D62052200

If we tried to reenter parallel_for, we would deadlock due to trying to acquire the threadpool mutex, which was already held. Removing the mutex (which is unnecessary) didn't fix the problem because pthreadpool has its own internal mutex.

Differential Revision: [D62052200](https://our.internmc.facebook.com/intern/diff/D62052200/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 26, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 75b9f1d with merge base 1cf3da3 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 26, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052200

swolchok added a commit that referenced this pull request Sep 26, 2024
If we tried to reenter parallel_for, we would deadlock due to trying to acquire the threadpool mutex, which was already held. Removing the mutex (which is unnecessary) didn't fix the problem because pthreadpool has its own internal mutex.

Differential Revision: [D62052200](https://our.internmc.facebook.com/intern/diff/D62052200/)

ghstack-source-id: 244975544
Pull Request resolved: #5714
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a5c9dee.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants