-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix regression in i64 argument handling in webgpu+bigint #22689
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
Conversation
|
Our webgpu testing is somewhat limited so I'm not sure how to go about testing this. I'll give it a go though. |
|
It looks like adding a test that included a call to |
|
Ah right of course.. the issue wasn't about order, but about the pre vs post addition name. LGTM. Btw what makes me a bit sad about the autogeneration aspect of library_sigs.js is that it increases to that "rift" of two tiers of JS library files: i.e. Emscripten authors have a different "power" or capabilities to JS library files that Emscripten users don't. This results in Emscripten users sometimes not having as easy time to monkey-see/-do copy stuff into their JS libraries. Ideally the JS libraries we have in Emscripten repository should be written using the same machinery as what end users have at their disposal. (dogfooding, and ensuring that APIs are complete, etc.) Though I definitely get the usefulness of autogenerating the sigs from the headers. |
Agreed. I think we should be able to make |
In wasm_webgpu I concocted this kind of a test for wgpu_queue_write_buffer(). Even though the bindings API is completely different, the same API call flow should work - maybe that can be used as inspiration. |
8e8d237 to
7f1606f
Compare
If we only need to call it - and not check the buffer contents afterward - we could easily write to a buffer somewhere, e.g. here: |
7f1606f to
35f1c56
Compare
Thanks, that worked. I verified locally that this test now fails without this change. BTW, we don't run that test as part of CI because we don't have access to webgpu on our circleci test bots. Any ideas on how we could get this test running in headless mode on our linux CI bots? |
This was caused by emscripten-core#22557, which was checking the `LibraryWebGPU` object for `__sig` members when the sigs are stored in a separate file and therefore live on the global `LibraryManager.library` object. Fixes: emscripten-core#22682
35f1c56 to
65fe7c2
Compare
|
Oops, I should probably have waited for an LGTM on that new test code. Can you take a look @kainino0x ? |
|
Test LGTM! |
This was caused by #22557, which was checking the
LibraryWebGPUobject for__sigmembers when the sigs are stored in a separate file and therefore live on the globalLibraryManager.libraryobject.Fixes: #22682