Skip to content

Commit 4c5c1e7

Browse files
joerundenjhill
andcommitted
Small updates from review
Co-authored-by: Nick Hill <[email protected]> Signed-off-by: Nick Hill <[email protected]> Signed-off-by: Joe Runde <[email protected]>
1 parent cf4eae9 commit 4c5c1e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

triton_patch/custom_cache_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ def __init__(self, key, override=False, dump=False):
2121
# create cache directory if it doesn't exist
2222
self.cache_dir = os.getenv("TRITON_CACHE_DIR",
2323
"").strip() or default_cache_dir()
24-
self.cache_dir = self.cache_dir + "_" + str(os.getpid())
25-
print(f"{self.cache_dir=}")
2624
if self.cache_dir:
25+
self.cache_dir = f"{self.cache_dir}_{os.getpid()}"
2726
self.cache_dir = os.path.join(self.cache_dir, self.key)
2827
self.lock_path = os.path.join(self.cache_dir, "lock")
2928
os.makedirs(self.cache_dir, exist_ok=True)
3029
else:
3130
raise RuntimeError("Could not create or locate cache dir")
31+
32+
print(f"Triton cache dir: {self.cache_dir=}")

0 commit comments

Comments
 (0)