mirror of
https://github.com/tile-ai/tilelang.git
synced 2026-10-29 07:53:03 +08:00
[Runtime][Cache] Detect and repair corrupted cache entries (#3074)
Harden cache entries against partial writes
This commit is contained in:
@@ -64,6 +64,7 @@ def _write_complete_kernel_cache_entry(
|
||||
(cache_path / cache.kernel_lib_path).write_bytes(b"fake-so")
|
||||
with (cache_path / cache.params_path).open("wb") as f:
|
||||
cloudpickle.dump(["param"], f)
|
||||
cache._write_manifest(str(cache_path))
|
||||
return cache_path
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user