Open qingyunqu opened 2 months ago
BTW, it passed when compiling torch-mlir with clang.
_stablehlo.cpython-39-x86_64-linux-gnu.so
have different *mlir*
symbol between gcc and clang
I think it would also get the same failure when building stablehlo by gcc without torch-mlir.
I think previous issue(https://github.com/openxla/stablehlo/issues/2170) catch the same problem.
Thanks for raising this issue. Starting to understand the importance of not exposing mlir::
symbols in these APIs -- we plan to fix this up but timeline unknown, top of the refactoring priorities, but below feature development like DotAlgorithms.
We will not be adding any new APIs without proper CAPI shims, recently added register_all_passes
with proper shim.
What happened?
I found this bug when I try to use stablehlo's interpreter in torch-mlir. It could be reproduced at torch-mlir
main
branch:It will produce error: