Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/triton/runtime/cache.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import importlib
import json
import os
import random
import uuid
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Dict, List, Optional
Expand Down Expand Up @@ -113,7 +113,7 @@ def put(self, data, filename, binary=True) -> str:
assert self.lock_path is not None
filepath = self._make_path(filename)
# Random ID to avoid any collisions
rnd_id = random.randint(0, 1000000)
rnd_id = str(uuid.uuid4())
# we use the PID in case a bunch of these around so we can see what PID made it
pid = os.getpid()
# use tempfile to be robust against program interruptions
Expand Down