Skip to content

Commit 9345279

Browse files
yuchengliu1xuhancn
authored andcommitted
skip inductor/test_torchinductor_opinfo in windows (pytorch#158225)
During enabling inductor CI in Windows, `test_torchinductor_opinfo.py` cost too many time (about 12 hours). This UT was seriously exceeding the time limit of CI. The compiler building was slower 4x in Windows than Linux after analyzing. Thus, we decide to skip the UT temporary and @xuhancn will keep searching the solution of compiler building in Windows. Pull Request resolved: pytorch#158225 Approved by: https://github.com/jansel Co-authored-by: Xu Han <[email protected]>
1 parent 194539e commit 9345279

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/inductor/test_torchinductor_opinfo.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
)
3131
from torch.testing._internal.common_methods_invocations import op_db, skipOps
3232
from torch.testing._internal.common_utils import (
33+
IS_CI,
3334
IS_MACOS,
35+
IS_WINDOWS,
3436
IS_X86,
3537
skipCUDAMemoryLeakCheckIf,
3638
skipIfCrossRef,
@@ -67,6 +69,15 @@
6769
sys.exit(0)
6870
raise
6971

72+
if IS_WINDOWS and IS_CI:
73+
# TODO(xuhancn) : improve the compiler build performance on windows.
74+
sys.stderr.write(
75+
"This UT is too slow on windows, and will cause out of time in CI. So skip it now.\n"
76+
)
77+
if __name__ == "__main__":
78+
sys.exit(0)
79+
raise unittest.SkipTest("skip slow test")
80+
7081
bf16 = torch.bfloat16 # not tested
7182
f64 = torch.float64
7283
f32 = torch.float32

0 commit comments

Comments
 (0)