Crash in PadDynamicAllocPass
#19136
Labels
bug 🐞
Something isn't working
codegen/rocm
ROCm code generation compiler backend (HIP/HSA)
codegen
Shared code generation infrastructure and dialects
What happened?
When investigating #19131, I ran the input IR on the gpu backend (vs cpu) and it ended up causing a crash in
PadDynamicAllocPass
.Here (https://gist.github.com/IanWood1/c2a3ac9cc3801faedead58a958a20b88) is the stacktrace as well as the IR before the failing pass (https://gist.github.com/IanWood1/b8ca10625ffb5efdc1ce1780fab71847).
Steps to reproduce your issue
iree-compile --iree-hal-target-device=hip --iree-hip-target=gfx1100 --iree-dispatch-creation-enable-aggressive-fusion=true quantmm.mlir
Version information
2311e04
Additional context
Looks like the upper bound is just below INT64_MAX, so it attempts to create a large memref subview
iree/compiler/src/iree/compiler/Codegen/Common/PadDynamicAlloc.cpp
Lines 49 to 54 in 3bb7fd2
The text was updated successfully, but these errors were encountered: