Skip to content

Failed to compile polyval on GPU in Linalg on tensors #5311

Closed

Description

@hanhanW

Describe the bug
This is derived from python integration tests. It failed because of hitting an assertion: workloadPerWorkgroup.size() <= 3 && "workloadPerWorkgroup size greater than 3 not handled"

Full log with print-ir-after-all: https://gist.github.com/hanhanW/e6379ccb49734d02fbec72a812898a09

To Reproduce

module  {
  func @polyval__three_coeffs(%arg0: tensor<2x2x2x2x2x2x2xf32> {tf._user_specified_name = "args_0"}, %arg1: tensor<2x2x2x2x2x2x2xf32> {tf._user_specified_name = "args_0"}, %arg2: tensor<2x2x2x2x2x2x2xf32> {tf._user_specified_name = "args_0"}, %arg3: tensor<f32> {tf._user_specified_name = "args_1"}) -> tensor<2x2x2x2x2x2x2xf32> attributes {iree.module.export, iree.reflection = {abi = "sip", abiv = 1 : i32, sip = "I27!S23!k0S13!k0_0k1_1k2_2k1_3R3!_0"}, tf._construction_context = "kEagerRuntime", tf._input_shapes = [#tf.shape<2x2x2x2x2x2x2>, #tf.shape<2x2x2x2x2x2x2>, #tf.shape<2x2x2x2x2x2x2>, #tf.shape<>]} {
    %0 = "mhlo.broadcast_in_dim"(%arg3) {broadcast_dimensions = dense<> : tensor<0xi64>} : (tensor<f32>) -> tensor<2x2x2x2x2x2x2xf32>
    %1 = mhlo.multiply %arg0, %0 : tensor<2x2x2x2x2x2x2xf32>
    %2 = mhlo.add %arg1, %1 : tensor<2x2x2x2x2x2x2xf32>
    %3 = "mhlo.broadcast_in_dim"(%arg3) {broadcast_dimensions = dense<> : tensor<0xi64>} : (tensor<f32>) -> tensor<2x2x2x2x2x2x2xf32>
    %4 = mhlo.multiply %2, %3 : tensor<2x2x2x2x2x2x2xf32>
    %5 = mhlo.add %arg2, %4 : tensor<2x2x2x2x2x2x2xf32>
    return %5 : tensor<2x2x2x2x2x2x2xf32>
  }
}

Run iree-translate --iree-mlir-to-vm-bytecode-module --iree-hal-target-backends=vulkan-spirv -iree-flow-dispatch-linalg-on-tensors=true -iree-codegen-spirv-experimental-linalg-on-tensors=true polyval.mlir

Activity

  1. added
    bug 🐞
    codegen/spirv
    on Apr 5, 2021
  2. MaheshRavishankar commented on Apr 5, 2021

    @MaheshRavishankar
    Collaborator

    Will see if PR #5297 will help there

  3. MaheshRavishankar commented on Apr 5, 2021

    @MaheshRavishankar
    Collaborator
  4. added a commit that references this issue on Apr 5, 2021
    f2f0041
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug 🐞codegen/spirv

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions