Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot re-initialize CUDA in forked subprocess #22

Closed
bakirillov opened this issue Nov 15, 2019 · 2 comments
Closed

Cannot re-initialize CUDA in forked subprocess #22

bakirillov opened this issue Nov 15, 2019 · 2 comments

Comments

@bakirillov
Copy link

Hello!

Auto-Pytorch fails with the following error:
Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method

What am I doing wrong?

@bakirillov
Copy link
Author

bakirillov commented Nov 15, 2019

Found out the solution. Just don't use your GPU anywhere else in python, it creates conflict.

@amirakbarnejad
Copy link

In the master-old branch it is mentioned that " ... Disable pynisher if you experience issues when using cuda ...". In my case disabling pynisher solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants