-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug] Segmentation fault while importing tvm #17550
Comments
New discovery: This issue may be caused by a version of LLVM that is too high. When the LLVM version used is 16 or above, it will compile code that leads to a Segmentation Fault, but the compilation itself passes; however, when using LLVM 15, everything works as expected. |
I tried to reproduce steps (official doc) with latest head, and it works fine.
If the problem persists with latest head checkout , could give some more detail of your environment ? |
Thanks a lot!! I'll try. |
If don't mind I am closing this, please feel free to reopen if issue still persists. |
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
Successfully import tvm in python.
Actual behavior
Segmentation fault (core dumped) when running
python -c "import tvm"
after compiling TVM successfully follow this doc.I've tried using faulthandler to locate the error:
After running
python -X faulthandler code.py
, I got messages below:There seems to be something wrong with the fuction in
tvm/python/tvm/_ffi/_ctypes/packed_func.py
as mentioned above while executing in my Environment.Environment
config.cmake
appending settings are:set(USE_CUDA ON)
,set(USE_CUBLAS ON)
,set(USE_CUDNN ON)
,set(USE_LLVM "\<path-to-llvm-config\> --ignore-libllvm --link-static")
andset(HIDE_PRIVATE_SYMBOLS ON)
TVM_HOME
andPYTHONPATH
, use conda venv and python 3.8.Steps to reproduce
Triage
The text was updated successfully, but these errors were encountered: