Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion torch/_dynamo/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import contextlib
import importlib
import logging
import os
from typing import Union

import torch
Expand All @@ -35,7 +36,11 @@ def run_tests(needs: Union[str, tuple[str, ...]] = ()) -> None:
if TEST_WITH_TORCHDYNAMO or TEST_WITH_CROSSREF:
return # skip testing

if not torch.xpu.is_available() and IS_WINDOWS:
if (
not torch.xpu.is_available()
and IS_WINDOWS
and os.environ.get("TORCHINDUCTOR_WINDOWS_TESTS", "0") == "0"
):
return

if isinstance(needs, str):
Expand Down
Loading