Skip to content

Commit 5cf02fd

Browse files
committed
fix
1 parent 26a121b commit 5cf02fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/common/triton_utils/autotuner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(
6363
get_current_device_name(),
6464
self.kernel_name,
6565
)
66+
os.makedirs(self.cache_dir, exist_ok=True)
6667
self.fn = fn
6768
self.static_key_func = static_key_func
6869
self.run_key_func = run_key_func
@@ -83,7 +84,6 @@ def _try_load_cache(self, static_key):
8384
if static_key in self.cached_configs:
8485
return
8586

86-
os.makedirs(self.cache_dir, exist_ok=True)
8787
cache_file = os.path.join(self.cache_dir, KernelConfigs.get_config_file_name(static_key))
8888
if os.path.exists(cache_file):
8989
with open(cache_file, "rb") as f:

0 commit comments

Comments
 (0)