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
6 changes: 5 additions & 1 deletion python/tvm/contrib/hexagon/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import signal
import socket
import stat
import random
import string
import subprocess
from typing import Union

Expand Down Expand Up @@ -58,7 +60,9 @@ def _get_hexagon_rpc_lib_dir() -> pathlib.Path:

def _get_test_directory_name() -> str:
"""Generate a time-stamped name for use as a test directory name."""
return datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S")
date_str = datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S")
random_str = "".join(random.choice(string.ascii_lowercase) for _ in range(10))
return f"{date_str}-{random_str}"


class HexagonLauncherRPC(metaclass=abc.ABCMeta):
Expand Down