Skip to content

Executable linking produces executables with multiple layouts but runtime does not support that #4536

Closed

Description

@benvanik

-iree-hal-link-executables will create an executable (in LLVM & VMLA) that has multiple interfaces and these then map to multiple executable layouts that are required during binding/dispatch. This doesn't match up with the executable creation semantics which take only a single executable layout - meaning that if the executable layout passed during creation is actually used things get .... weird.

Probably need to change executable creation to take multiple layouts. I've been meaning to change that API for awhile anyway and see if we can make it something a bit more sensible for batch compilation too.

For example, today:

iree_hal_executable_cache_prepare_executable(cache, executable_layout, caching_mode, executable_data, ...);

Simple fix:

iree_hal_executable_cache_prepare_executable(cache, caching_mode, executable_data, executable_layout[], ...);

Future async coolness:

iree_hal_executable_cache_prepare_executables(cache, caching_mode, executable_data, executable_layout[], signal_semaphore, ...);

Activity

  1. added
    bug 🐞
    compiler/dialects
    hal/api
    on Jan 15, 2021
  2. added this to the milestone on Jan 15, 2021
  3. self-assigned this
    on Jan 15, 2021
  4. added a commit that references this issue on Jan 15, 2021
    98d5757
  5. ScottTodd commented on Jan 19, 2021

    @ScottTodd
    Member

    Just leaving some breadcrumbs for anyone (like us months later) following along...

    • We also discussed this on Discord here
    • This issue comment first spotted the issue and bounced around some ideas
    • This commit on a local branch attempted to work around / fix this limitation
  6. added 8 commits that reference this issue on Jan 21, 2021
    22a118a
    cde5c67
    c06b535
    c5fd769
    09c38d6
    eb4ffe8
    f7514fc
    7224b9f
  7. 7 remaining items

  8. added a commit that references this issue on Jan 27, 2021
    6ee1d9a
  9. added 2 commits that reference this issue on Jan 27, 2021
    d7552c4
    3bbef29
  10. added a commit that references this issue on Jan 27, 2021
    90ccecb
  11. added 3 commits that reference this issue on Jan 28, 2021
    f878bc0
    90a7648
    327e836
  12. added a commit that references this issue on Jan 29, 2021
    028130f
  13. added 4 commits that reference this issue on Jan 29, 2021
    3a3ef4d
    2e3039c
    78f2448
    e176a3c
  14. added 2 commits that reference this issue on Jan 30, 2021
    068adbc
    1321588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐞compiler/dialectshal/api

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions