Closed zhekunz2 closed 1 year ago
I temporarily disabled the op erasion here, And then I found a new error, which is because the argument of the func is set to a new memspace, a SubViewOp uses it as an operand but its result type doesn't change.
I'm not familiar with this pass, @xrzhang111 you might have more knowledge about it.
It is because there's a bug in a previous pass, fixed
@zhekunz2 Could you use the branch locally first to see whether this can solve your problem?
@yaochengji Hitting CUDA_ERROR_INVALID_VALUE
during runtime with the fix.
problem solved by https://github.com/bytedance/byteir/pull/48
I'm getting
LLVM ERROR: operation destroyed but still has uses
when runninggpu-opt
pipeline. The erroring pass isConvertFuncToGPUPass
.error msg:
cmd to reproduce:
byteir-opt --convert-func-to-gpu input.mlir
Input mlir:
cc: @liwenchangbdbz @yaochengji