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

Add convenience function enumerate_adapters #409

Closed
skoudoro opened this issue Nov 9, 2023 · 4 comments · Fixed by #412
Closed

Add convenience function enumerate_adapters #409

skoudoro opened this issue Nov 9, 2023 · 4 comments · Fixed by #412

Comments

@skoudoro
Copy link

skoudoro commented Nov 9, 2023

Hi wgpu-py Team,

I can not find enumerate_adapters() to just get an idea of all gpu available in a machine.

is there an alternative way to do that and this is something to add?

Thank you for the feedback.

@almarklein
Copy link
Member

The wgpy-native implementation: https://github.com/gfx-rs/wgpu-native/blob/cf02ef3a28c92340483a0393505717bc66103d18/ffi/wgpu.h#L226

Good point. We could add it.

The function is not part of the WebGPU spec, but an extra convenience function by wgpu-native. That's why the code-generation has not told us to add it yet. Will update the title of this issue accordingly.

@almarklein almarklein changed the title Question: Can not find enumerate_adapters? Add convenience function enumerate_adapters Nov 9, 2023
@Korijn
Copy link
Collaborator

Korijn commented Nov 9, 2023

Could this be just to provide something like a dropdown to select an adapter? What's the purpose?

@skoudoro
Copy link
Author

skoudoro commented Nov 9, 2023

Could this be just to provide something like a dropdown to select an adapter? What's the purpose?

I use only the compute shader for scientific computation purpose (no visualization needed for now). I would like to select a specific GPU for that.

Thank you all for the feedback

@toloudis
Copy link

toloudis commented Nov 9, 2023

I also have this use case working with scientific data where it would be beneficial to be able to partition work across multiple GPUs on one system, or let user make an informed choice of which GPU is more powerful.

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

Successfully merging a pull request may close this issue.

4 participants