We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ba60e commit 00858c3Copy full SHA for 00858c3
python/test/unit/conftest.py
@@ -24,3 +24,10 @@ def fresh_triton_cache():
24
except OSError:
25
# Ignore errors, such as PermissionError, on Windows
26
pass
27
+
28
29
+def pytest_configure(config):
30
+ worker_id = os.getenv("PYTEST_XDIST_WORKER")
31
+ # On Windows, use a dedicated Triton cache per pytest worker to avoid PermissionError.
32
+ if os.name == "nt" and worker_id:
33
+ os.environ["TRITON_CACHE_DIR"] = tempfile.mkdtemp(prefix="triton-")
0 commit comments