Skip to content

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

@LeiWang1999

Description

@LeiWang1999

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.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions