Skip to content

Commit 6c3069d

Browse files
authored
Don't use a unique cache dir for each pytest worker (#3693)
Revert 00858c3 * ~https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/13887151636~ * ~https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/13897029875~ * https://github.com/intel/intel-xpu-backend-for-triton/actions/runs/14241782510 The main idea is not to hide problems if they occur, it is very unlikely that users will have the same setup. Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 4098dcf commit 6c3069d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

python/test/unit/conftest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77

88
def pytest_configure(config):
99
config.addinivalue_line("markers", "interpreter: indicate whether interpreter supports the test")
10-
worker_id = os.getenv("PYTEST_XDIST_WORKER")
11-
# On Windows, use a dedicated Triton cache per pytest worker to avoid PermissionError.
12-
if os.name == "nt" and worker_id:
13-
os.environ["TRITON_CACHE_DIR"] = tempfile.mkdtemp(prefix="triton-")
1410
if os.name == "nt":
1511
config.addinivalue_line("markers", "forked: subprocess analogue of pytest.mark.forked on Windows")
1612

0 commit comments

Comments
 (0)