-
Notifications
You must be signed in to change notification settings - Fork 53
Select gpu #491
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
Select gpu #491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just 2 small comments.
Do you think it makes sense to expose this as a top level import? I don't think there's a use case for many more gpu related functions to create a "fpl.gpu" namespace. |
In Maybe put differently ... if fpl is currently a single namespace, I'd just put it in there, I think. |
Thanks! I like having your input since you're much much experienced in API design 😄 |
basically wrapper for pygfx/pygfx#709 and pygfx/wgpu-py#481
Adds a
fastplotlib.utils.gpu
module, and exposesenumerate_adapters
,select_adapter
, andprint_wgpu_report
at top level.Example:
Also added corresponding info to docs: https://fastplotlib--491.org.readthedocs.build/en/491/user_guide/gpu.html#gpu-info