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

Open
avi-pomicell opened this issue Feb 12, 2023 · 1 comment
Open

RuntimeError: Cannot re-initialize CUDA in forked subprocess #271

avi-pomicell opened this issue Feb 12, 2023 · 1 comment

Comments

@avi-pomicell
Copy link

Hi

I'm getting this error when trying to use dgl-ke with GPU:
RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method

I am able to run the code on CPU only.
Any ideas?

More info:
I set up the environment using these insturctions: #267 (comment)

@avi-pomicell avi-pomicell changed the title RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method RuntimeError: Cannot re-initialize CUDA in forked subprocess Feb 12, 2023
@XinliYu
Copy link

XinliYu commented Aug 13, 2023

Same issue here.

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