Skip to content

VMLA raises INVALID_ARGUMENT errors on mhlo that passes on Vulkan-SPIRV #4065

Closed

Description

@phoenix-meadowlark

There are two similar errors that VMLA raises when executing MLIR generated by the tensorflow integrations. This issue affects both the python test runner and iree-run-mlir. MLIR files and instructions for reproducing the errors with iree-run-mlir are linked below.

tf.math.mod (and others) with dynamic shapes

VMLA passes for input tensors up to rank 5, but fails for input tensors of rank 6 or higher.

There isn't an example of vulkan passing for this IR because its dynamic shape support isn't there yet.

E iree/hal/host/inproc_command_buffer.cc:244] DeviceQueue failure while executing command; permanently failing all future commands: iree/hal/host/serial/serial_command_processor.cc:119: INVALID_ARGUMENT; Push constants out of range
E iree/tools/iree-run-mlir-main.cc:474] Failure for split at line #1: INVALID_ARGUMENT; while invoking C++ function hal.ex.submit_and_wait; while calling import; Evaluating export function 2; Evaluating functions
ERROR running file (/tmp/iree/modules/tf/math/mod/dynamic_dims_non_complex/iree_input.mlir): INVALID_ARGUMENT; while invoking C++ function hal.ex.submit_and_wait; while calling import; Evaluating export function 2; Evaluating functions

KWS Streaming lstm (and others) in non-streaming mode

In this case Vulkan passes but VMLA fails.

E iree/hal/host/inproc_command_buffer.cc:244] DeviceQueue failure while executing command; permanently failing all future commands: iree/hal/vmla/op_module.cc:170: INVALID_ARGUMENT; Invalid binding set=0, binding=33
E iree/tools/iree-run-mlir-main.cc:474] Failure for split at line #1: INVALID_ARGUMENT; while invoking C++ function hal.ex.submit_and_wait; while calling import; Evaluating export function 2; Evaluating functions
ERROR running file (/tmp/iree/modules/kws_streaming/lstm/non_streaming/iree_input.mlir): INVALID_ARGUMENT; while invoking C++ function hal.ex.submit_and_wait; while calling import; Evaluating export function 2; Evaluating functions

That Vulkan is passing suggests that this a bug in VMLA and not higher in the stack, at least in the latter case.

Activity

  1. added
    bug 🐞
    compiler/dialects
    on Dec 3, 2020
  2. ScottTodd commented on Aug 31, 2021

    @ScottTodd
    Member

    Obsolete?

  3. benvanik commented on Aug 31, 2021

    @benvanik
    Collaborator

    vmla doesn't exist, so I'd say yes :)

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

    bug 🐞compiler/dialects

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions