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 #713

Open
mkzia opened this issue Jan 2, 2023 · 1 comment
Open

Cannot re-initialize CUDA in forked subprocess #713

mkzia opened this issue Jan 2, 2023 · 1 comment

Comments

@mkzia
Copy link

mkzia commented Jan 2, 2023

I get the following error when a qcluster worker attempts to use CUDA:

Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method

How I can get around this error?

@mkzia
Copy link
Author

mkzia commented Jan 2, 2023

Celery has the ability to share variables between workers. This might be a work around. But does qcluster have global variables?
https://stackoverflow.com/a/70618882

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

1 participant