-
Notifications
You must be signed in to change notification settings - Fork 86
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
Fix device_pool refactor #3469
Fix device_pool refactor #3469
Conversation
The old version made one device with no descriptor. If that fail then it stopped creating any devices period. The previous refactor was bad in that if the any device failed it would just stop making devices. This one is simplified. It just used the pool as a pool. There is no special handling for failed devices.
note: I tested by pasting this at top of
I then ran Both before the bad change (works) and after the bad change (failed) and with this fix (works) |
If you have dawn node set up, and you have a machine without f16 support, please can you see if the following correctly shows
|
I don't have a machine without f16 support. But the code I pasted in above repos the bug and after the fix correctly skips. |
oh, maybe I can force swiftshader, assuming it doesn't support f16 |
Yeah, SwiftShader should |
Confirmed that this fixes the dawn/node issues by checking out your branch 👍🏼 |
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.
LGTM, but would also be good to get @kainino0x 's thumbs up
Build swiftshader, and set
|
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.
This seems fine. Honestly not sure why I added all that complex logic to begin with. I think all it does is make tests fail faster when webgpu isn't working. Hopefully I'm not forgetting something.
This reverts commits: * f71a834. * 0a68bf7. Revert "Add AdapterLimitsGPUTest that sets all limits to the adapter's (gpuweb#3466)" This reverts commit 0a68bf7.
This reverts commits: * f71a834. * 0a68bf7. Revert "Add AdapterLimitsGPUTest that sets all limits to the adapter's (gpuweb#3466)" This reverts commit 0a68bf7.
The old version made one device with no descriptor. If that fail then it stopped creating any devices period.
The previous refactor was bad in that if the any device failed it would just stop making devices.
This one is simplified. It just used the pool as a pool. There is no special handling for failed devices.
Note: I could check if no description is passed in and it fails then assume all other requests will fail. Should I add that in or leave it as is?
Requirements for PR author:
.unimplemented()
./** documented */
and new helper files are found inhelper_index.txt
.Requirements for reviewer sign-off:
When landing this PR, be sure to make any necessary issue status updates.