Skip to content

warning: no target backends provided buffer constraints; falling back to host default #5449

Closed

Description

@hanhanW

Seeing many warnings in iree/samples/* when building IREE.

E.g.,

iree/modules/tensorlist/tensorlist_test.mlir:1:1: warning: no target backends provided
 buffer constraints; falling back to host default
func @identity_through_set_item_get_item(%arg0: !hal.buffer_view) -> !hal.buffer_view attributes {iree.module.export, iree.abi.none} {
^
...
iree/modules/strings/strings_module_test.mlir:15:1: warning: no target backends provid
ed buffer constraints; falling back to host default
func @print_example_func(%arg0 : i32) attributes { iree.module.export } {

Looks like we forgot to pass target backends in

https://github.com/google/iree/blob/1a941fc4fd4398c83e168281e5cf657c663e8e40/iree/modules/tensorlist/BUILD#L48-L54

I don't remember I saw it before... not sure what happened.

Activity

  1. hanhanW commented on Apr 15, 2021

    @hanhanW
    ContributorAuthor

    It's either from IdentifyConstantPools.cpp or PackAllocations.cpp.

  2. benvanik commented on Apr 15, 2021

    @benvanik
    Collaborator

    yep - both will do it depending on usage - we should be passing a target backend there

  3. hanhanW commented on Apr 15, 2021

    @hanhanW
    ContributorAuthor

    cool, let me send a quick fix later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions