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

Closed
PratyushAvi opened this issue Jul 26, 2021 · 1 comment
Closed

Multiple GPUs #7

PratyushAvi opened this issue Jul 26, 2021 · 1 comment

Comments

@PratyushAvi
Copy link

Hi,

I'm trying to set up MXMNet to use multiple GPUs.
I've changed

model = MXMNet(config).to(device)

to

model = MXMNet(config)
model = nn.DataParallel(model)
model.to(device)

However, this appears to be insufficient. Is there anything else or something else I need to do to use multiple GPUs?

Thank you!

@zetayue
Copy link
Owner

zetayue commented Jul 26, 2021

Since we are using PyTorch Geometric to build our model, you may need to use the related options provided by PyG instead of PyTorch:
pyg-team/pytorch_geometric#2529 (comment)
https://pytorch-geometric.readthedocs.io/en/latest/modules/nn.html?highlight=DataParallel#module-torch_geometric.nn.data_parallel

@zetayue zetayue closed this as completed Aug 15, 2021
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