[Bug] Segmentation fault while importing tvm #17550
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
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: