Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/gemv/example_gemv.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def main(do_bench: bool = True):

print("Test passed!")

if not do_bench:
if do_bench:
best_result = get_autotuned_kernel(N, K)
best_config = best_result.config
kernel = splitk_gemv_vectorized_tvm(N, K, **best_config)
Expand Down
5 changes: 2 additions & 3 deletions tilelang/utils/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@

def _get_cached_lib():
name = 'compress_lib'
cached_path = os.path.join(_CACHE_DIR, f"{name}.so")

if os.path.exists(cached_path):
if os.path.exists(os.path.join(_CACHE_DIR, f"{name}.so")):
try:
return _import_module_from_library(name, cached_path)
return _import_module_from_library(name, _CACHE_DIR, is_python_module=True)
except Exception:
# If loading fails, recompile
pass
Expand Down
Loading