Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in PadDynamicAllocPass #19136

Open
IanWood1 opened this issue Nov 13, 2024 · 0 comments
Open

Crash in PadDynamicAllocPass #19136

IanWood1 opened this issue Nov 13, 2024 · 0 comments
Labels
bug 🐞 Something isn't working codegen/rocm ROCm code generation compiler backend (HIP/HSA) codegen Shared code generation infrastructure and dialects

Comments

@IanWood1
Copy link
Contributor

IanWood1 commented Nov 13, 2024

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

  1. Grab https://gist.github.com/IanWood1/4b3885614cd81e5ba95b9e63586bf678
  2. Run 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

  %21:2 = util.assume.int 
      %10<udiv = 4096>, 
      %20<umin = 0, umax = 9007199254740991>
    : index, index

if (!range.isUninitialized() &&
range.getValue().smax() !=
IntegerValueRange::getMaxRange(dim).getValue().smax()) {
return range.getValue().smax().getSExtValue();
}
}

@IanWood1 IanWood1 added bug 🐞 Something isn't working codegen Shared code generation infrastructure and dialects codegen/rocm ROCm code generation compiler backend (HIP/HSA) labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working codegen/rocm ROCm code generation compiler backend (HIP/HSA) codegen Shared code generation infrastructure and dialects
Projects
None yet
Development

No branches or pull requests

1 participant