iree icon indicating copy to clipboard operation
iree copied to clipboard

iree-codegen-cpu-materialize-host-encoding fails with invalid reference to GlobalOp

Open sogartar opened this issue 4 months ago • 19 comments

What happened?

I have input MLIR that is exported from the test in this PR. It's compilation with assertions on fails with

iree-compile: repo/compiler/src/iree/compiler/Dialect/HAL/Analysis/DeviceAnalysis.cpp:180: auto mlir::iree_compiler::IREE::HAL::DeviceAnalysis::gatherDeviceTargets(mlir::Attribute, mlir::Operation *, SetVector<IREE::HAL::DeviceTargetAttr> &)::(anonymous class)::operator()(auto) const [symRefAttr:auto = mlir::SymbolRefAttr]: Assertion `globalOp && "global reference must be valid"' failed.

Full error message is in the reproducer zip.

Steps to reproduce your issue

  1. Download the reproducer sharded-toy-llama.zip.
  2. Run compile.sh.

What component(s) does this issue relate to?

Compiler

Version information

5a2dd5609d41df71e7ad77fb706e1cb971492f7b

Additional context

No response

sogartar avatar Sep 27 '24 21:09 sogartar