Skip to content

CPU pipeline failed for some mlir #246

Closed
@xurui1995

Description

@xurui1995
# ./bin/gc-opt /home/xurui/gc_v2/test.mlir  --gc-cpu-pipeline

func.func @main_entry(%arg0: tensor<128x512xbf16>, %arg1: tensor<512x256xbf16>) -> tensor<128x256xbf16>  attributes {llvm.emit_c_interface}  {
  %cst = arith.constant 0.000000e+00 : bf16
  %0 = tensor.empty() : tensor<128x256xbf16>
  %1 = linalg.fill ins(%cst : bf16) outs(%0 : tensor<128x256xbf16>) -> tensor<128x256xbf16>
  %2 = linalg.matmul ins(%arg0, %arg1 : tensor<128x512xbf16>, tensor<512x256xbf16>) outs(%1 : tensor<128x256xbf16>) -> tensor<128x256xbf16>
  return %2 : tensor<128x256xbf16>
}
<unknown>:0: error: 'arith.mulf' op requires the same type for all operands and results
<unknown>:0: note: see current operation: %28 = "arith.mulf"(%arg10, %27) <{fastmath = #arith.fastmath<none>}> : (bf16, f32) -> bf16
// -----// IR Dump After DeepTileContractionNamedOp Failed (deep-tile-contraction-named-op) //----- //

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions