Skip to content

Fixing issues found when enabling indirect command buffers. - #18382

Merged
benvanik merged 1 commit into
mainfrom
users/benvanik/indirect
Sep 9, 2024
Merged

benvanik merged 1 commit into
mainfrom
users/benvanik/indirect

Conversation

@benvanik

@benvanik benvanik commented Aug 28, 2024 •

Copy link
Copy Markdown
Collaborator

This is in preparation for making --iree-hal-indirect-command-buffers=true the default as part of #17875.

Most of the fixes required were related to analysis failures that required stricter handling of duplicate call graph traversal and
care around when initializers are combined (which still needs improvement but at a general level not related to this work). A TODO was fixed for supporting stream.cmd.call in reusable command buffers by passing binding table ordinals along with buffers to the stream.cmd.func ops once lowered into the HAL dialect - there are no users of this functionality today but now it won't be a special case.

@benvanik
benvanik force-pushed the users/benvanik/indirect branch 3 times, most recently from f12845f to 2b817f7 Compare August 29, 2024 01:25
@benvanik
benvanik force-pushed the users/benvanik/indirect branch 5 times, most recently from d4019e8 to 5a86dd5 Compare September 9, 2024 19:33
This is in preparation for making
`--iree-hal-indirect-command-buffers=true` the default as part of #17875.

Most of the fixes required were related to analysis failures that
required stricter handling of duplicate call graph traversal and
care around when initializers are combined (which still needs improvement
but at a general level not related to this work). A TODO was fixed for
supporting `stream.cmd.call` in reusable command buffers by passing
binding table ordinals along with buffers to the `stream.cmd.func` ops
once lowered into the HAL dialect - there are no users of this
functionality today but now it won't be a special case.
@benvanik
benvanik force-pushed the users/benvanik/indirect branch from 5a86dd5 to 5435384 Compare September 9, 2024 20:24
@benvanik benvanik changed the title Enabling --iree-hal-indirect-command-buffers=true by default. Fixing issues found when enabling indirect command buffers. Sep 9, 2024
@benvanik
benvanik requested a review from ScottTodd September 9, 2024 20:31
@benvanik
benvanik marked this pull request as ready for review September 9, 2024 20:37
@benvanik
benvanik merged commit 7db3bdb into main Sep 9, 2024
@benvanik
benvanik deleted the users/benvanik/indirect branch September 9, 2024 20:57
@lundong

lundong commented Sep 10, 2024

Copy link
Copy Markdown
Contributor

@benvanik This PR caused compilation failure for inlineHAL cases (with flag "--iree-execution-model=inline-dynamic"): error: 'util.initializer' op failed to inline into combined initializer. Is it a corner case that was not covered?

josemonsalve2 pushed a commit to josemonsalve2/iree that referenced this pull request Sep 14, 2024
…g#18382)

This is in preparation for making
`--iree-hal-indirect-command-buffers=true` the default as part of
iree-org#17875.

Most of the fixes required were related to analysis failures that
required stricter handling of duplicate call graph traversal and
care around when initializers are combined (which still needs
improvement but at a general level not related to this work). A TODO was
fixed for supporting `stream.cmd.call` in reusable command buffers by
passing binding table ordinals along with buffers to the
`stream.cmd.func` ops once lowered into the HAL dialect - there are no
users of this functionality today but now it won't be a special case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants