Skip to content

[inductor] Fix finalization issues when using multiprocessing#87725

Closed
zdevito wants to merge 1 commit intogh/zdevito/199/basefrom
gh/zdevito/199/head
Closed

[inductor] Fix finalization issues when using multiprocessing#87725
zdevito wants to merge 1 commit intogh/zdevito/199/basefrom
gh/zdevito/199/head

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Oct 25, 2022

Stack from ghstack (oldest at bottom):

If python was launched with 'spawn' it will not use the standard
shutdown methods that concurrent.futures requires. So we register a
shutdown with the method it does uses. Without this, shutdown hangs
since the workers will not exit.

cc @jansel @mlazos @soumith @voznesenskym @yanboliang @penguinwu @anijain2305

If python was launched with 'spawn' it will not use the standard
shutdown methods that concurrent.futures requires. So we register a
shutdown with the method it does uses. Without this, shutdown hangs
since the workers will not exit.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 25, 2022

🔗 Helpful Links

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

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

❌ 3 Failures, 5 Pending

As of commit bbb1b2c:

The following jobs have failed:

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

zdevito added a commit that referenced this pull request Oct 25, 2022
If python was launched with 'spawn' it will not use the standard
shutdown methods that concurrent.futures requires. So we register a
shutdown with the method it does uses. Without this, shutdown hangs
since the workers will not exit.

ghstack-source-id: 11f469f
Pull Request resolved: #87725
@zdevito zdevito requested a review from wconstab October 25, 2022 19:47
@github-actions
Copy link
Contributor

This PR needs a label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

For more information, see https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copy link
Contributor

@wconstab wconstab left a comment

Choose a reason for hiding this comment

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

I verified this locally, it works! thanks @zdevito!

cc @davidberard98 @anijain2305 @aazzolini

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 25, 2022
@wconstab wconstab added the topic: not user facing topic category label Oct 25, 2022
@wconstab
Copy link
Contributor

@pytorchbot merge -f "CI failures appear unrelated"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

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

kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
…h#87725)

If python was launched with 'spawn' it will not use the standard
shutdown methods that concurrent.futures requires. So we register a
shutdown with the method it does uses. Without this, shutdown hangs
since the workers will not exit.

cc @jansel @mlazos @soumith @voznesenskym @yanboliang @penguinwu @anijain2305
Pull Request resolved: pytorch#87725
Approved by: https://github.com/wconstab
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
…h#87725)

If python was launched with 'spawn' it will not use the standard
shutdown methods that concurrent.futures requires. So we register a
shutdown with the method it does uses. Without this, shutdown hangs
since the workers will not exit.

cc @jansel @mlazos @soumith @voznesenskym @yanboliang @penguinwu @anijain2305
Pull Request resolved: pytorch#87725
Approved by: https://github.com/wconstab
@facebook-github-bot facebook-github-bot deleted the gh/zdevito/199/head branch June 8, 2023 19:26
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