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

Multiple GPUs error #3

Open
ArsenLuca opened this issue Aug 2, 2019 · 3 comments
Open

Multiple GPUs error #3

ArsenLuca opened this issue Aug 2, 2019 · 3 comments

Comments

@ArsenLuca
Copy link

When I use DataParallel for multiple GPUs, it raises an error in the function sparsestmax:
RuntimeError: arguments are located on different GPUs at /pytorch/aten/src/THC/generic/THCTensorMathCompareT.cu:31
It seems that the rad is only set to gpu0.
So how should I re-organize the code to set rad to all GPUs?

@MengTianjian
Copy link
Collaborator

Sometimes DataParallel module in PyTorch shows some random behavior and could be very slow, so we would recommend you to use distributed training instead.

@herbertLJY
Copy link
Collaborator

We have updated SSN code for supporting dataparallel, please check and try.
But we haven't tested the experiement results(ImageNet...) in Dataparallel mode yet.

@ArsenLuca
Copy link
Author

We have updated SSN code for supporting dataparallel, please check and try.
But we haven't tested the experiement results(ImageNet...) in Dataparallel mode yet.

Good job. 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