Repository navigation
Work around scalar support bug in webgpu compilation. - #14629
Merged
ScottTodd merged 1 commit intoAug 10, 2023
Merged
Conversation
benvanik
approved these changes
Aug 10, 2023
KoolJBlack
approved these changes
Aug 10, 2023
Member
Author
|
Oh, I found another solution to this: don't pass |
Member
Author
|
Oh, nevermind. Omitting that pass still produces runtime errors for the scalar program: |
nhasabni
pushed a commit
to plaidml/iree
that referenced
this pull request
Aug 24, 2023
See iree-org#11054 (comment) - this `multiple_results.mlir` test program uses scalars, and iree-org#13711 changed the code path that scalar dispatches go down. This alternate code path does not appear to have the same SPIR-V -> WGSL compatibility patches as the tensor path, so we see compilation errors with messages like `entry point 'd0' references multiple variables that use the same resource binding`. We should fix that (and add tests so it doesn't regress again), but I want to keep webgpu runtime debugging work unblocked. This modified program exhibits the same runtime-related issue as reported on iree-org#13809 / iree-org#14163: * The first invocation incorrectly returns ``` 2xf32=2.23 2.45 2xf32=0 0 ``` * The second invocation correctly returns ``` 2xf32=1.23 1.45 2xf32=2.23 2.45 ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #11054 (comment) - this
multiple_results.mlirtest program uses scalars, and #13711 changed the code path that scalar dispatches go down. This alternate code path does not appear to have the same SPIR-V -> WGSL compatibility patches as the tensor path, so we see compilation errors with messages likeentry point 'd0' references multiple variables that use the same resource binding. We should fix that (and add tests so it doesn't regress again), but I want to keep webgpu runtime debugging work unblocked.This modified program exhibits the same runtime-related issue as reported on #13809 / #14163: