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

Running on Two GPUs #11

Open
fanliqmul opened this issue Dec 7, 2022 · 2 comments
Open

Running on Two GPUs #11

fanliqmul opened this issue Dec 7, 2022 · 2 comments

Comments

@fanliqmul
Copy link

I am trying to run MatDeepLearn on two GPUs. However, the Epoch never started as shown below. Can MatDeepLearn run on two GPUs?
......................................................
Edge processed: 20375 out of 20375
Dataset used: StructureDataset(20375)
Data(edge_index=[2, 507], edge_weight=[507], y=0.6325269937515259, z=[39], u=[1, 3], structure_id=[1], x=[39, 114], edge_attr=[507, 50])
tensor([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 1.]) tensor([0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 1.])
--- 2871.311035633087 seconds for processing ---
Starting regular training
running for 250 epochs on CGCNN_demo model
Running on 2 GPUs

@vxfung
Copy link
Collaborator

vxfung commented Dec 10, 2022

It should be able to run on multiple GPUs. Perhaps some other error has occured - try running with parallel=False first and seeing if there is an error message.

@fanliqmul
Copy link
Author

I think the reason is that I forgot to use parallel=True option. After use, it can ran on multiple GPUs.

Thanks

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