-
Notifications
You must be signed in to change notification settings - Fork 40
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
(Feature request) Select GPU #9
Comments
Ah yes, that would be good. I think ideally this would be handled by Burn (or rather https://github.com/tracel-ai/cubecl), as more people would need this. That will require some more backend work:
When those have made some progress I'll update Brush to use this, and allow you to select a device. Hopefully that works! Ps: Can you let me know what devices you have? Do you have multiple dedicated GPUs? Or is there a bug where it selects an integrated GPU over a dedicated one? |
I have an intel gpu at index 0, and an nVidia gpu at index 1. This was actually a problem I had with windows aswell. Windows thought the integrated gpu was the high performance one, and the dedicated one was more power efficient. Thank you so much! |
Ok! I think that's technically more a bug with wgpu (or windows?), as the logic should already be to pick the dedicated GPU, but either way good to have an override! egui PR just landed so now just the Burn one. Burn is having some issues at head but hope to have those resolved soon |
Ok I resolved the last few issues in the Burn update, and landed the selection! After this PR 820deb5 You can set the CUBECL_WGPU_DEFAULT_DEVICE env variable to pick between GPUs like this:
Again I suspect there's a bug in wgpu so they might both be reported as dedicated / integrated, not sure. I've added a display of what GPU is being used: 809c1d8 Lmk if that works! |
Thank you! It appears to select the correct device now. But it has another error unfortunately, It fails with:
|
Hmmm well that would also explain why it wasn't picked before - it seems wgpu doesn't believe it can support rendering the surface / window. Do you have other graphical applications that do run on this GPU? I'm not sure how integrated + dedicate GPU stuff works on Linux. |
Sorry for the late response, I believe this is solved, I have run into Linux support problems. |
With this project, is it possible to choose which gpu the training will take place on? It seems to default to the 0th gpu on the computer, which is not always the most performant one.
The text was updated successfully, but these errors were encountered: