Repository navigation
Clean up HAL dispatch ops to not track redundant state. - #3121
Merged
Merged
Conversation
* `hal.device` can be retrieved from `hal.command_buffer` * `hal.executable` can be retrieved from `@executable::@target::@entry_point` nested references This adds a new `hal.command_buffer.device` op to help keep the IR tidy, with a new canonicalization pattern for when it refers to a device that was created in the same scope. Since the new op is created within a `hal.device.switch`, the canonicalization is not used. However, since `MaterializeResourceCachesPass` does not yet support multiple devices, the lowerings still "work" as written today, without needing to add a runtime op for the device query.
MaheshRavishankar
pushed a commit
to MaheshRavishankar/iree
that referenced
this pull request
Sep 14, 2020
* `hal.device` can be retrieved from `hal.command_buffer` * `hal.executable` can be retrieved from `@executable::@target::@entry_point` nested references This adds a new `hal.command_buffer.device` op to help keep the IR tidy, with a new canonicalization pattern for when it refers to a device that was created in the same scope. Since the new op is created within a `hal.device.switch`, the canonicalization is not used. However, since `MaterializeResourceCachesPass` does not yet support multiple devices, the lowerings still "work" as written today, without needing to add a runtime op for the device query. Progress on iree-org#1890
Merged
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.
hal.devicecan be retrieved fromhal.command_bufferhal.executablecan be retrieved from@executable::@target::@entry_pointnested referencesThis adds a new
hal.command_buffer.deviceop to help keep the IR tidy, with a new canonicalization pattern for when it refers to a device that was created in the same scope.Since the new op is created within a
hal.device.switch, the canonicalization is not used. However, sinceMaterializeResourceCachesPassdoes not yet support multiple devices, the lowerings still "work" as written today, without needing to add a runtime op for the device query.Progress on #1890