- Update test_foreach_xpu.py skip pattern from use_cuda_graph_True to
use_xpu_graph_True (parameter was renamed in test_foreach_xpu.py)
- Add dynamo/test_backends_xpu.py: skip test_aot_cudagraphs for XPU
- Add dynamo/test_cudagraphs_xpu.py: skip all tests (XPUGraph not supported)
- Add dynamo/test_cudagraphs_expandable_segments_xpu.py: skip all tests
- Add dynamo/test_structured_trace_xpu.py: from upstream with
test_gpugraphs skipped due to XPUGraph feature gap
- Update skip_list_common.py with new test files and skip patterns
Agent-Logs-Url: https://github.com/intel/torch-xpu-ops/sessions/c5ce0178-8d74-410c-92c7-bd0ca1d861f1
Co-authored-by: laifenxiawucha <184592536+laifenxiawucha@users.noreply.github.com>
Multiple test cases across
test_backends.py,test_cudagraphs.py,test_cudagraphs_expandable_segments.py,test_structured_trace.py,test_foreach.py, andtest_cuda_repro.pyare failing due to the XPUGraph feature gap in torch-xpu-ops. This PR skips the affected tests and adds XPU dynamo test wrappers with proper skip annotations.Changes Made
test/xpu/skip_list_common.py: Updatedtest_foreach_xpu.pyskip pattern fromuse_cuda_graph_Truetouse_xpu_graph_True(the parametrize name was renamed in the XPU test wrapper). Also added entries for 4 new dynamo XPU test files with cudagraph-related test skips.test/xpu/dynamo/test_backends_xpu.py(new): XPU wrapper fortest/dynamo/test_backends.pythat skipstest_aot_cudagraphssince XPUGraph is not fully supported.test/xpu/dynamo/test_cudagraphs_xpu.py(new): XPU wrapper that skips all tests fromtest_cudagraphs.py(all depend on XPUGraph).test/xpu/dynamo/test_cudagraphs_expandable_segments_xpu.py(new): XPU wrapper that skips all tests for the same reason.test/xpu/dynamo/test_structured_trace_xpu.py(new): Full XPU-adapted version oftest_structured_trace.py(based on upstream PR [XPU] Migrate 11 dynamo test cases for XPU pytorch/pytorch#169241) withtest_gpugraphs(the XPU equivalent oftest_cudagraphs) explicitly skipped due to XPUGraph feature gap.Notes
test/inductor/test_cuda_repro.py::test_cpu_indexalready has@skipIfXpu(msg="cudagraph is not supported on xpu")in the upstream PyTorch, so no additional change is needed for that test.Test
In PyTorch repo (run via
op_ut):test/xpu/dynamo/test_backends_xpu.pytest/xpu/dynamo/test_cudagraphs_xpu.pytest/xpu/dynamo/test_cudagraphs_expandable_segments_xpu.pytest/xpu/dynamo/test_structured_trace_xpu.pytest/xpu/test_foreach_xpu.py