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

RuntimeError: Cannot re-initialize CUDA in forked subprocess. #54

Open
AmrutaAnalytics opened this issue Dec 24, 2020 · 2 comments
Open

Comments

@AmrutaAnalytics
Copy link

AmrutaAnalytics commented Dec 24, 2020

Getting RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method. working with colab. Here pytorch version is 1.7.0
error2

@yuanjiechen
Copy link

Use python multiprocessing without torch.multiprocessing, and write multiprocessing.set_start_method('spawn') in main process

@AtefehBaniasadi
Copy link

Hello dear,

If I want to run this repo without multiprocessing what should I do?

Thank you.

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

3 participants