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
c67f73b0
Unverified
Commit
c67f73b0
authored
Oct 15, 2025
by
Lei Wang
Committed by
GitHub
Oct 15, 2025
Browse files
[Env] Optimize the mechanism for locating `TL_LIBS` (#1038)
parent
e5399527
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
tilelang/env.py
tilelang/env.py
+2
-6
No files found.
tilelang/env.py
View file @
c67f73b0
...
@@ -4,7 +4,6 @@ import pathlib
...
@@ -4,7 +4,6 @@ import pathlib
import
logging
import
logging
import
shutil
import
shutil
import
glob
import
glob
import
site
from
dataclasses
import
dataclass
from
dataclasses
import
dataclass
from
typing
import
Optional
from
typing
import
Optional
...
@@ -20,12 +19,9 @@ TL_TEMPLATE_NOT_FOUND_MESSAGE = ("TileLang is not installed or found in the expe
...
@@ -20,12 +19,9 @@ TL_TEMPLATE_NOT_FOUND_MESSAGE = ("TileLang is not installed or found in the expe
", which may lead to compilation bugs when utilize tilelang backend."
", which may lead to compilation bugs when utilize tilelang backend."
TVM_LIBRARY_NOT_FOUND_MESSAGE
=
(
"TVM is not installed or found in the expected path"
)
TVM_LIBRARY_NOT_FOUND_MESSAGE
=
(
"TVM is not installed or found in the expected path"
)
SITE_PACKAGES
=
site
.
getsitepackages
()
TL_LIBS
=
[
os
.
path
.
join
(
i
,
'tilelang/lib'
)
for
i
in
site
.
getsitepackages
()]
TL_LIBS
=
[
i
for
i
in
TL_LIBS
if
os
.
path
.
exists
(
i
)]
TL_ROOT
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
TL_ROOT
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
TL_LIBS
=
[
os
.
path
.
join
(
i
,
'lib'
)
for
i
in
[
TL_ROOT
]]
TL_LIBS
=
[
i
for
i
in
TL_LIBS
if
os
.
path
.
exists
(
i
)]
DEV
=
False
DEV
=
False
THIRD_PARTY_ROOT
=
os
.
path
.
join
(
TL_ROOT
,
'3rdparty'
)
THIRD_PARTY_ROOT
=
os
.
path
.
join
(
TL_ROOT
,
'3rdparty'
)
...
...
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