Expand XPU compiler/autograd testing - #4894
Conversation
7f323a1 to
842bced
Compare
|
@copilot please fix the lint issue. |
Fixed in the latest commit. The issues were:
|
|
@copilot please fix the lint job https://github.com/intel/torch-xpu-ops/actions/runs/31455650407/job/93668736816?pr=4894 failures for this pr. |
Fixed in the latest commit. Two issues were addressed:
|
4df2f05 to
0a2ce0c
Compare
|
@copilot fix the lint issues for the files changed in this PR. The lint job is https://github.com/intel/torch-xpu-ops/actions/runs/31467356782/job/93702938446?pr=4894 |
Fixed in commit |
|
@copilot fix the lint errors in this https://github.com/intel/torch-xpu-ops/actions/runs/31568622333/job/94025635331?pr=4894 . |
Fixed in the latest commit:
|
32655b5 to
a08484b
Compare
|
@copilot please summarize the top n failures for the files test_* in this pr. the UT jobs are https://github.com/intel/torch-xpu-ops/actions/runs/31571224115/job/94041674226?pr=4894 and https://github.com/intel/torch-xpu-ops/actions/runs/31571224115/job/94073605582?pr=4894 |
Here's a summary of the top failures across both UT jobs: Job 94073605582 — 35 new failures1. 2.
3. 4.
5.
6.
Job 94041674226 — 1 new failure (op_extended)7.
(4 other failures in Top failure categories by frequency:
|
|
The test_aot_autograd_cache failures are relative to errors and the case of test_export also failed with same error. Need to check the test infrastructure. |
…lready support xpu on upstream Update the skip list with upstream items, removed the one file which already supported in upstream merege stashed changes Fix gpu type is not imported issue Add devices and allow xpu flag Fix the merge issues Fix lint issues: tab indentation and import errors in test files Co-authored-by: shangerxin <3085654+shangerxin@users.noreply.github.com> Fix CLANGTIDY mirror_dim_ member initializer lint error in FFTKernelFunctor.cpp Move mirror_dim_ initialization to member initializer list to fix the cppcoreguidelines-prefer-member-initializer lint error. Test Plan: Lint checked via CI at https://github.com/intel/torch-xpu-ops/actions/runs/31467356782/job/93702938446 This PR was authored with an AI assistant. Co-authored-by: shangerxin <3085654+shangerxin@users.noreply.github.com> Fix remaining lint errors: tabs in test_testing_xpu.py and FFTKernelFunctor.cpp - Replace tab with spaces on line 426 of test/xpu/test_testing_xpu.py - Use default member initializer for mirror_dim_ at declaration (modernize-use-default-member-init) instead of constructor initializer list This PR was authored with an AI assistant. Co-authored-by: shangerxin <3085654+shangerxin@users.noreply.github.com> Fix lint issue and revert the changes fort the test_testing_xpu.py Fix lint issue
c2eab35 to
f7ad2b0
Compare
|
@copilot please summarize the top n failures into a table for the files test_* in this pr. the UT jobs are https://github.com/intel/torch-xpu-ops/actions/runs/31571224115/job/94041674226?pr=4894 and https://github... and https://github.com/intel/torch-xpu-ops/actions/runs/31679057066/job/94447532967?pr=4894 |
Here's the failure summary table for the latest UT runs (jobs 94394787611 and 94447532967): Job 94394787611 (op_extended) — 1 new failure
Job 94447532967 (op_ut) — 30 new failures
Observations vs. previous run:
|
|
The remain test failures relative to this PR test_aot_autograd_cache.py and test_export.py are due to below error.
|
Description
This PR introduces a SYCL-oriented build system for XPU ops and expands XPU test coverage around compiler infrastructure, activation checkpointing, autograd cache behavior, and PyTorch testing utilities.
Migrate required files in torch repo
test/dynamo/test_activation_checkpointing.py
test/dynamo/test_aot_autograd_cache.py
test/dynamo/test_compiler_bisector.py
test/dynamo/test_debug_utils.py
test/dynamo/test_deviceguard.py
test/dynamo/test_export.py
test/dynamo/test_regional_inductor.py
test/dynamo/test_structured_trace.py
test/dynamo/test_subclasses.py
test/dynamo/test_trace_rules.py
test/test_testing.py
Compare Link
329d891...pull/4894/head
Changes
Added
New, very large test suite for activation checkpointing, selective checkpointing, rematerialization, region memory budgets, non-strict tracing, nested compile, and many edge cases.
Modified
Greatly expands generic testing coverage: assert-close/assert-equal, sparse tensors, quantized tensors, parametrization, opinfo, hardware classification, and import behavior.
Updates skip entries for moved/renamed test files and adds skips for the new XPU dynamo/debug-related tests.
Deleted
test/xpu/dynamo/test_aot_autograd_cache_xpu.py
test/xpu/dynamo/test_compiler_bisector_xpu.py
test/xpu/dynamo/test_deviceguard_xpu.py
test/xpu/dynamo/test_regional_inductor_xpu.py
What this means overall
The PR consolidates older Dynamo/inductor test coverage into a new activation-checkpointing-focused test file.
It also broadens AOT-autograd cache validation and general testing utilities coverage.
Some old test modules are removed because their scenarios were absorbed into the new files.
Bugs
#4943
#4945