Skip to content

[spirv] Support reduction + elementwise op with dynamic shapes #9802

Closed

Description

@okkwon

What happened?

When a reduction and an elementwise op with dynamic shapes are in a single dispatch, the vulkan fails to compile. The first pass that fails is PadDynamicAlloc.

Steps to reproduce your issue

The input file is here: https://gist.github.com/okkwon/9d56fd368ab61aaec5bf5f18345fda6b

The command to reproduce is:

iree-compile iree_input.mlir --iree-input-type=xla --iree-flow-fuse-reduction-broadcast-elementwise --iree-vm-bytecode-module-output-format=flatbuffer-binary --iree-hal-target-backends=vulkan-spirv -o=compiled.vmfb

Here is the afterall dump: https://gist.github.com/okkwon/680b255bc70ce30777944eacc7ea4fc9

What component(s) does this issue relate to?

Compiler

Version information

No response

Additional context

No response

Activity

  1. added
    bug 🐞
    on Jul 14, 2022
  2. added
    codegen/spirv
    on Jul 15, 2022
  3. changed the title [-][vulkan] support codegen for reduction + elementwise op with dynamic shapes in a dispatch[/-] [+][spirv] Support reduction + elementwise op with dynamic shapes[/+] on Sep 23, 2022
  4. moved this from Not Started to Backlog in (Deprecated) IREEon Apr 28, 2023
  5. antiagainst commented on Aug 2, 2024

    @antiagainst
    Member

    closing as obsolete -- no actions planned now

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

Metadata

Metadata

Assignees

Labels

bug 🐞codegen/spirv

Type

No type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions