iree: iree-codegen-cpu-materialize-host-encoding fails with invalid reference to GlobalOp
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
- Download the reproducer sharded-toy-llama.zip.
- Run
compile.sh.
What component(s) does this issue relate to?
Compiler
Version information
5a2dd5609d41df71e7ad77fb706e1cb971492f7b
Additional context
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 19 (14 by maintainers)
There is a bug in
getFuncExecutableTargetAttrson data-tiling path. The bug is likely in HAL device analysis and I can take a look.There is another issue about disabling data-tiling. I thought that
--iree-opt-data-tiling=falseshould work, but it does not work on my machine. It still runs the set_encoding passes even with the flag. I’ll take a look.