Skip to content

Conversation

@jansel
Copy link
Contributor

@jansel jansel commented Mar 29, 2024

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 29, 2024

🔗 Helpful Links

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

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

❌ 15 New Failures, 14 Unrelated Failures

As of commit 5fdb58c with merge base b03fb49 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

jansel added a commit that referenced this pull request Mar 29, 2024
ghstack-source-id: e85b113
Pull Request resolved: #122941
@jansel jansel marked this pull request as draft March 29, 2024 04:39
[ghstack-poisoned]
jansel added 3 commits March 29, 2024 17:13
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
jansel added 6 commits April 4, 2024 21:39
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
jansel added a commit that referenced this pull request Apr 22, 2024
ghstack-source-id: 5cacac3
Pull Request resolved: #122941
[ghstack-poisoned]
jansel added a commit that referenced this pull request Apr 22, 2024
ghstack-source-id: c22603a
Pull Request resolved: #122941
[ghstack-poisoned]
@jansel jansel changed the title [inductor] Move compile workers to a subprocess [inductor] Add ProcessPool-in-subproc worker_start_method Apr 22, 2024
[ghstack-poisoned]
jansel added a commit that referenced this pull request Apr 23, 2024
In many environments using fork-based parallelism causes issues because user processes are not fork-safe.  This moves our parallel compile work pool into a subprocess that we control (that should be fork safe).

Perf run: https://github.com/pytorch/pytorch/actions/runs/8486887873



cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
masnesral added a commit that referenced this pull request May 2, 2024
In many environments using fork-based parallelism causes issues because user processes are not fork-safe.  This moves our parallel compile work pool into a subprocess that we control (that should be fork safe).

Perf run: https://github.com/pytorch/pytorch/actions/runs/8486887873



cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
In many environments using fork-based parallelism causes issues because user processes are not fork-safe.  This moves our parallel compile work pool into a subprocess that we control (that should be fork safe).

Perf run: https://github.com/pytorch/pytorch/actions/runs/8486887873



cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
masnesral added a commit that referenced this pull request May 2, 2024
@masnesral
Copy link
Contributor

@masnesral has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

masnesral added a commit that referenced this pull request May 21, 2024
Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
#124682
#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

[ghstack-poisoned]
masnesral added a commit that referenced this pull request May 23, 2024
… compile"

Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
#124682
#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
masnesral added a commit that referenced this pull request May 23, 2024
Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
#124682
#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
masnesral added a commit that referenced this pull request May 28, 2024
… compile"

Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
#124682
#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
masnesral added a commit that referenced this pull request May 28, 2024
Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
#124682
#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request May 29, 2024
Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
#124682
#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

Pull Request resolved: #126816
Approved by: https://github.com/jansel
Aidyn-A pushed a commit to tinglvv/pytorch that referenced this pull request May 30, 2024
Summary:
Adds a "safe" parallel compile implementation that a) Popens a sub-process with an entry point we control, and b) Uses a ProcessPoolExecutor in that sub-processes to perform parallel compiles. This change essentially squashes these two implementations from jansel, but removes the "thread-based" approach since benchmarking revealed that compile-time performance was poor compared to the existing impl:
pytorch#124682
pytorch#122941

This PR adds the implementation, but defaults to the existing "fork". I'll submit a separate change to enable.

Pull Request resolved: pytorch#126816
Approved by: https://github.com/jansel
@jansel jansel closed this Jul 4, 2024
@github-actions github-actions bot deleted the gh/jansel/298/head branch August 4, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants