Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiWang1999 committed Aug 7, 2024
1 parent 8c666ac commit ce79943
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions testing/python/cache/test_operator_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Licensed under the MIT License.
import pytest
import os
import shutil
import torch
import bitblas
from bitblas import Matmul, MatmulConfig
Expand Down Expand Up @@ -248,7 +249,7 @@ def test_global_cache_save_to_database(
database_path = "/tmp/.tmp_bitblas_cache.db"
# clean the database if exists
if os.path.exists(database_path):
os.remove(database_path)
shutil.rmtree(database_path)
global_operator_cache.save_into_database(database_path, target=target)
assert os.path.exists(database_path)
global_operator_cache.clear()
Expand Down Expand Up @@ -285,6 +286,4 @@ def test_global_cache_save_to_database(

# fmt: on
if __name__ == "__main__":
# bitblas.testing.main()
test_global_cache_save_to_database(1, 1024, 1024, "float16", "float16", "float16", False, False,
False, "nt", False)
bitblas.testing.main()

0 comments on commit ce79943

Please sign in to comment.