Skip to content
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

[Installation] Migrating TVM 3rdparty from Customized Fork to Upstream Repository #15

Open
LeiWang1999 opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@LeiWang1999
Copy link
Contributor

Hi @LeiWang1999 , I've compiled it with my own TVM, I used CUDA12 and LLVM14 with TVM v0.17.0,

However I can't find the path tilelang/python to set up the PYTHONPATH. I tried to use $PYTHONPATH=/home/chendi/hdd/git/tilelang/tilelang, but still got:

(tilelang) chendi@Workspace:~/hdd/git/tilelang$ echo $PYTHONPATH
/home/chendi/hdd/git/tilelang/tilelang
(tilelang) chendi@Workspace:~/hdd/git/tilelang$ echo $TVM_IMPORT_PYTHON_PATH
/home/chendi/git/tvm/python
(tilelang) chendi@Workspace:~/hdd/git/tilelang$ python -c "import tilelang; print(tilelang.__version__)"  
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/chendi/hdd/git/tilelang/tilelang/__init__.py", line 106, in <module>
    _LIB, _LIB_PATH = _load_tile_lang_lib()
  File "/home/chendi/hdd/git/tilelang/tilelang/__init__.py", line 101, in _load_tile_lang_lib
    return ctypes.CDLL(lib_path[0]), lib_path[0]
  File "/home/chendi/miniconda3/envs/tilelang/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/chendi/hdd/git/tilelang/build/libtilelang_module.so: undefined symbol: _ZN3tvm3tir11StmtVisitor10VisitStmt_EPKNS0_18CustomizedCodeNodeE

Originally posted by @Lurkrazy in #13

though we consider tvm as a 3rdparty and utilize tvm via cmake include dependency, but the installation with upstream tvm is not fully tested yet.

@LeiWang1999 LeiWang1999 self-assigned this Jan 20, 2025
@LeiWang1999 LeiWang1999 added the help wanted Extra attention is needed label Jan 20, 2025
@LeiWang1999 LeiWang1999 changed the title [Installation] Fix integration with tvm upstream [Installation] Migrating TVM 3rdparty from Customized Fork to Upstream Repository Jan 23, 2025
@LeiWang1999
Copy link
Contributor Author

LeiWang1999 commented Jan 23, 2025

pending due to the lack of a comprehensive Test #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant