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

iree-compiler failed to compile gpt2 #3267

Open
Peter9606 opened this issue Apr 30, 2024 · 0 comments
Open

iree-compiler failed to compile gpt2 #3267

Peter9606 opened this issue Apr 30, 2024 · 0 comments

Comments

@Peter9606
Copy link

Hi, Experts,

With attached test.zip, I got an error as following:

test.mlir:175:11: error: failed to legalize operation 'torch.aten.empty.memory_format' that was explicitly marked illegal
    %61 = torch.aten.empty_strided %59, %60, %int6_84, %int0_85, %cuda3A0_86, %false_87 : !torch.list<int>, !torch.list<int>, !torch.int, !torch.int, !torch.Device, !torch.bool -> !torch.vtensor<[],f32>
          ^
test.mlir:175:11: note: see current operation: %648 = "torch.aten.empty.memory_format"(%646, %34, %46, %647, %41, %43) : (!torch.list<int>, !torch.int, !torch.int, !torch.Device, !torch.bool, !torch.none) -> !torch.vtensor<[],f32>
iree-compile: /home/peter/github/iree/third_party/llvm-project/mlir/include/mlir/IR/UseDefLists.h:198: mlir::IRObjectWithUseList<OperandType>::~IRObjectWithUseList() [with OperandType = mlir::OpOperand]: Assertion `use_empty() && "Cannot destroy a value that still has uses!"' failed.
Please report issues to https://github.com/openxla/iree/issues and include the crash backtrace.
Stack dump:

The command I used to reproduce this is:
iree-compile --iree-hal-target-backends=cuda --mlir-elide-resource-strings-if-larger=10 test.mlir -o test.llir

Is this a known issue or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant