Skip to content

Commit c0c0b60

Browse files
committed
added username to temp path
1 parent 714f530 commit c0c0b60

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
@@ -56,7 +57,9 @@
5657
L2_LIMIT_FOR_TILING = -1
5758
USE_DISTRIBUTED_MODE_TRACE = False
5859
OFFLOAD_MODULE_TO_CPU = False
59-
DEBUG_LOGGING_DIR = os.path.join(tempfile.gettempdir(), "torch_tensorrt/debug_logs")
60+
DEBUG_LOGGING_DIR = os.path.join(
61+
tempfile.gettempdir(), pwd.getpwuid(os.getuid())[0], "torch_tensorrt/debug_logs"
62+
)
6063

6164

6265
def default_device() -> Device:

0 commit comments

Comments
 (0)