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

windows multiprocessing error #9

Open
lihuiliullh opened this issue Jan 15, 2021 · 1 comment
Open

windows multiprocessing error #9

lihuiliullh opened this issue Jan 15, 2021 · 1 comment

Comments

@lihuiliullh
Copy link

I run this code in windows and get a multiprocessing error.

RuntimeError: cuda runtime error (801) : operation not supported at C:\w\1\s\windows\pytorch\torch/csrc/generic/StorageSharing.cpp:245

Do you have windows version code?

@qema
Copy link
Collaborator

qema commented Jan 15, 2021

Unfortunately the code is not directly supported in windows. PyTorch itself appears to have some difficulties on windows -- it may be possible to get it to run by setting num_workers=0 for all DataLoaders and using the command line --n_workers=1 for all scripts, but I'm unable to test this. Alternatively, you could try setting --device=cpu to avoid cuda altogether, or running the code through windows subsystem for linux? Let me know if these still don't work.

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