Skip to content

Commit

Permalink
[Hexagon] Add random string to workspace name (#11593)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh authored Jun 8, 2022
1 parent 99c113a commit 97e681d
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 97e681d

Please sign in to comment.