You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ran into this issue as well and can confirm it and the solution provided. Build process was generating _torchMlir.cpython-3xx-x86_64-linux-gnu.so using the 'global' available python instead of the virtual env python. Adding the -D does generate the correct lib. I am using 3.12 stock python and 3.10 in the venv.
Hi folks,
When trying to build torch-mlir following the provided instructions , I ran into unit test failures, specifically
All of which stem from
ModuleNotFoundError: No module named 'torch_mlir._mlir_libs._torchMlir'
This occurs with both the base and base + optimization instructions. The issue is resolved by explicitly adding
-DPython_FIND_VIRTUALENV=ONLY
to the CMake invocation (in addition to the existing
-DPython3_FIND_VIRTUALENV=ONLY
).If it's helpful, I used Python 3.11 for the virtual environment.
The text was updated successfully, but these errors were encountered: