Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
c85bb3ac
"examples/git@developer.sourcefind.cn:OpenDAS/tilelang.git" did not exist on "54fc6ba099e2c0081ddf76d33bc111c928f45f17"
Unverified
Commit
c85bb3ac
authored
Nov 02, 2025
by
Lei Wang
Committed by
GitHub
Nov 02, 2025
Browse files
[Bugfix] Fix tvm import path for editable build (#1172)
parent
13bdcd60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
testing/python/language/test_tilelang_language_let.py
testing/python/language/test_tilelang_language_let.py
+1
-1
tilelang/env.py
tilelang/env.py
+3
-4
No files found.
testing/python/language/test_tilelang_language_let.py
View file @
c85bb3ac
...
@@ -16,7 +16,7 @@ def test_let_vectorize_load():
...
@@ -16,7 +16,7 @@ def test_let_vectorize_load():
mod
=
tvm
.
IRModule
({
"main"
:
main
})
mod
=
tvm
.
IRModule
({
"main"
:
main
})
mod
=
tvm
.
compile
(
mod
,
target
=
"cuda"
)
mod
=
tvm
.
compile
(
mod
,
target
=
"cuda"
)
assert
"float4 b"
in
mod
.
mod
.
import
ed_modules
[
0
].
ge
t_source
()
assert
"float4 b"
in
mod
.
mod
.
import
s
[
0
].
inspec
t_source
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
tilelang/env.py
View file @
c85bb3ac
...
@@ -297,12 +297,11 @@ def prepend_pythonpath(path):
...
@@ -297,12 +297,11 @@ def prepend_pythonpath(path):
if
env
.
TVM_IMPORT_PYTHON_PATH
is
not
None
:
if
env
.
TVM_IMPORT_PYTHON_PATH
is
not
None
:
prepend_pythonpath
(
env
.
TVM_IMPORT_PYTHON_PATH
)
prepend_pythonpath
(
env
.
TVM_IMPORT_PYTHON_PATH
)
else
:
else
:
tvm_path
=
os
.
path
.
join
(
THIRD_PARTY_ROOT
,
"
tvm
"
)
tvm_path
=
os
.
path
.
join
(
THIRD_PARTY_ROOT
,
'
tvm
'
,
'python'
)
assert
os
.
path
.
exists
(
tvm_path
),
tvm_path
assert
os
.
path
.
exists
(
tvm_path
),
tvm_path
if
tvm_path
not
in
sys
.
path
:
if
tvm_path
not
in
sys
.
path
:
tvm_python_binding
=
os
.
path
.
join
(
tvm_path
,
'python'
)
prepend_pythonpath
(
tvm_path
)
prepend_pythonpath
(
tvm_python_binding
)
env
.
TVM_IMPORT_PYTHON_PATH
=
tvm_path
env
.
TVM_IMPORT_PYTHON_PATH
=
tvm_python_binding
if
os
.
environ
.
get
(
"TVM_LIBRARY_PATH"
)
is
None
:
if
os
.
environ
.
get
(
"TVM_LIBRARY_PATH"
)
is
None
:
os
.
environ
[
'TVM_LIBRARY_PATH'
]
=
env
.
TVM_LIBRARY_PATH
=
os
.
pathsep
.
join
(
TL_LIBS
)
os
.
environ
[
'TVM_LIBRARY_PATH'
]
=
env
.
TVM_LIBRARY_PATH
=
os
.
pathsep
.
join
(
TL_LIBS
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment