Skip to content

Commit f04a18c

Browse files
committed
added username to temp path
1 parent b46599e commit f04a18c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/torch_tensorrt/dynamo/_defaults.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import pwd
23
import tempfile
34

45
import torch
@@ -49,7 +50,9 @@
4950
L2_LIMIT_FOR_TILING = -1
5051
USE_DISTRIBUTED_MODE_TRACE = False
5152
OFFLOAD_MODULE_TO_CPU = False
52-
DEBUG_LOGGING_DIR = os.path.join(tempfile.gettempdir(), "torch_tensorrt/debug_logs")
53+
DEBUG_LOGGING_DIR = os.path.join(
54+
tempfile.gettempdir(), pwd.getpwuid(os.getuid())[0], "torch_tensorrt/debug_logs"
55+
)
5356

5457

5558
def default_device() -> Device:

0 commit comments

Comments
 (0)