Skip to content

Commit

Permalink
C++ jit
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Mishra <[email protected]>
  • Loading branch information
mayank31398 committed Dec 21, 2024
1 parent 74c242d commit 4fe469d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cute_kernels/cutotune/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def load(self) -> None:
self.best_cache = self._deserialize(cache["best_configs"], False)

def get_best_configs(self, function_hash: str) -> dict[str, CutoTuneConfig]:
if function_hash not in self.best_cache:
self.best_cache[function_hash] = {}

return self.best_cache[function_hash]

def _serialize(self, x: dict, has_config_time_list: bool) -> dict:
Expand Down

0 comments on commit 4fe469d

Please sign in to comment.