Skip to content

Commit

Permalink
Fix database path default (#85)
Browse files Browse the repository at this point in the history
Before this change, the default for `database_path` would evaluate to
the value that `BITBLAS_DATABASE_PATH` had upon the definition of the
function, ignoring changes made using `set_database_path`.
  • Loading branch information
janEbert authored Jul 17, 2024
1 parent d2a86ea commit cec086c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bitblas/cache/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ def _instantiate_and_add_operator(self, mapping, config, rt_mod, srcpath, libpat
global_operator_cache = OperatorCache()


def load_global_ops_cache(database_path=BITBLAS_DATABASE_PATH, target=None):
def load_global_ops_cache(database_path=None, target=None):
if database_path is None:
database_path = get_database_path()
if target is None:
target = bitblas.auto_detect_nvidia_target()
logger.info(f"Loading operators from database {database_path} for target {target}")
Expand Down

0 comments on commit cec086c

Please sign in to comment.