iree-org / iree

A retargetable MLIR-based machine learning compiler and runtime toolkit.

Home Page:http://iree.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[T = unsigned int]: Assertion `!empty()' failed during matmul transform script

Eliasj42 opened this issue · comments

I'm seeing [T = unsigned int]: Assertion `!empty()' failed when I try to apply and transform script to a matmul.

steps to reproduce:

iree-compile --iree-hal-target-backends=rocm --iree-rocm-target-chip=gfx942 --iree-rocm-bc-dir=/opt/rocm/amdgcn/bitcode --iree-global-opt-propagate-transposes=true --iree-opt-outer-dim-concat=true --iree-opt-const-eval=false --iree-codegen-gpu-native-math-precision=true --iree-rocm-waves-per-eu=2 --iree-preprocessing-pass-pipeline='builtin.module(iree-preprocessing-transpose-convolution-pipeline)' --iree-codegen-llvmgpu-use-vector-distribution --iree-codegen-transform-dialect-library=attention_and_matmul_spec.mlir mmt-unet.mlir -o matmul-unet.vmfb

mmt-unet: https://gist.github.com/kuhar/ccd7a0b49e48017454830fe7f97ed981
mmt-unet(with only 1 matmul): https://gist.github.com/Eliasj42/1032cfe9c1405d5202bfb441e4e9ad1c
attention_amd_matmul_spec.mlir: https://gist.github.com/Eliasj42/312ba5c1c7dcdba9e173aa26cb9ac6fb