Open EllisLambda opened 9 months ago
Hi Ellis. With my delta-debugging tool, I find that the error might not be due to the omp.target. Instead, it might be due to the -convert-openmp-to-llvm
pass. I reproduced the crash with the following code:
module {
func.func @omp_target() {
%alloca = memref.alloca() : memref<64x64xf64>
%0 = omp.map_info var_ptr(%alloca : memref<64x64xf64>, tensor<?xi32>) map_clauses(to) capture(ByRef) -> memref<64x64xf64>
return
}
}
The MLIR and LLVM toolchain was built with https://github.com/llvm/llvm-project/commit/8c6172b0ac2b254dec7d57326abfd666a7954a03. Use
mlir-opt -convert-vector-to-llvm -finalize-memref-to-llvm -convert-arith-to-llvm -convert-openmp-to-llvm
raise error