Skip to content

Enable eager tests for inductor-unittest - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU - #176689

Closed
daisyden wants to merge 76 commits into
mainfrom
gh/daisyden/8/head
Closed

daisyden wants to merge 76 commits into
mainfrom
gh/daisyden/8/head

Conversation

daisyden added 2 commits March 6, 2026 07:22
disable torch.half and torch.complex32 on XPU for some fft ops before they are implemented
update dot and vdot dtypes according to latest implementation.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Mar 6, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/176689

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (35 Unrelated Failures)

As of commit ba2ea64 with merge base f613b2a (image):

CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@daisyden
daisyden marked this pull request as draft March 6, 2026 07:27
@daisyden daisyden changed the title enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU Enable eager tests for inductor-unittest - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU Mar 6, 2026
chuanqi129 pushed a commit to chuanqi129/pytorch that referenced this pull request Mar 6, 2026
…_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
…_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
… enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
@daisyden daisyden changed the title Enable eager tests for inductor-unittest - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU [WIP] Enable eager tests for inductor-unittest - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU Mar 11, 2026
…st_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
…test - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
sandy-gags pushed a commit to sandy-gags/pytorch that referenced this pull request Mar 12, 2026
sandy-gags pushed a commit to sandy-gags/pytorch that referenced this pull request Mar 12, 2026
…st_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
…test - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
…st_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
…test - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

[ghstack-poisoned]
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Mar 13, 2026
…st_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

1. Enable xpu with instantiate_device_type_tests() allow_xpu=True augument
2. Added backward_failure_skips and _skip_backward_failures() to skip cases failed on xpu due to known limitations, avoid too much updates in op_db. 





[ghstack-poisoned]
…test - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

1. Enable xpu with instantiate_device_type_tests() allow_xpu=True augument
2. Added backward_failure_skips and _skip_backward_failures() to skip cases failed on xpu due to known limitations, avoid too much updates in op_db. 





[ghstack-poisoned]
…st_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

1. Enable xpu with instantiate_device_type_tests() allow_xpu=True augument
2. Added backward_failure_skips and _skip_backward_failures() to skip cases failed on xpu due to known limitations, avoid too much updates in op_db. 





[ghstack-poisoned]
…test - enable test_ops_fwd_gradients.py and test_ops_gradients.py on Intel GPU"

1. Enable xpu with instantiate_device_type_tests() allow_xpu=True augument
2. Added backward_failure_skips and _skip_backward_failures() to skip cases failed on xpu due to known limitations, avoid too much updates in op_db. 





[ghstack-poisoned]
daisyden added 6 commits July 20, 2026 09:17
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@daisyden

Copy link
Copy Markdown
Collaborator Author

@claude is the CI failure related?

@claude

claude Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Claude finished @daisyden's task in 2m 48s —— View job


CI failure analysis

Short answer: No — none of the failures are caused by this PR's changes.

I pulled the current CI status for commit 597cae8b. There are two failing workflows: xpu and trunk (ROCm). None trace back to the three files this PR touches.

Details

What this PR actually changes:

  • test/test_ops_fwd_gradients.py, test/test_ops_gradients.py — add allow_xpu=True to instantiate_device_type_tests.
  • torch/testing/_internal/common_methods_invocations.py — XPU-gated DecorateInfos (every added decorator carries device_type="xpu"), including the float32 tolerance override with the oneDNN-determinism comment (intel/torch-xpu-ops#3650).

1. xpu / linux-noble-xpu-n-py3.10 / test (default, 2, 12) — job 88849288807

The only failing test is:

nn/test_convolution.py::TestConvolutionNNDeviceTypeXPU::test_slow_conv_transpose3d_kernel_size_mismatch_xpu
AssertionError: "kernel_size.*must match weight spatial dimensions" does not match
"The operator 'aten::slow_conv_transpose3d' is not currently implemented for the XPU device..."

This is a test in test/nn/test_convolution.py — a file this PR does not touch. It fails because aten::slow_conv_transpose3d isn't implemented on XPU, so the op raises NotImplementedError before the expected shape-validation error. Dr. CI flags this as previously disabled by #190640 / #190646; those disable issues were closed recently, so a rebase is needed to pick up the fix/re-disable. Not introduced by this PR.

2. trunk (ROCm MI350) — all pre-existing / infra, unrelated to XPU:

  • inductor/test_torchinductor_opinfo and test_subclass (38-min timeout) — ROCm GPU runner issues.
  • distributed shard — transient RCCL/KFD topology failure on the runner pod.
  • The flaky test_fn_gradgrad_masked_prod_cuda_complex128 matches a known trunk flake.

None of these ROCm jobs exercise the XPU decorators or allow_xpu paths added here.

Conclusion: The actionable one is the XPU shard-2 slow_conv_transpose3d failure, and even that is a pre-existing XPU op gap in an untouched test file whose disable issue was closed — resolved by rebasing, not by changing anything in this PR. The ROCm failures are infra/flaky.

The only thing worth acting on is a rebase to pick up the closed XPU disable issues for test_slow_conv_transpose3d_kernel_size_mismatch_xpu; nothing in this PR's diff needs to change.
• branch gh/daisyden/8/head

@daisyden

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

daisyden added 2 commits July 31, 2026 08:08
[ghstack-poisoned]
[ghstack-poisoned]
@daisyden

daisyden commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: trunk / win-vs2022-cpu-py3 / test (default, 7, 12, windows.4xlarge.nonephemeral)

Details for Dev Infra team Raised by workflow job

@daisyden

daisyden commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request ciflow/xpu Run XPU CI tasks Merged open source topic: not user facing topic category

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Bug Skip]: Random failures of test_backward_nn_functional_conv_transpose3d_xpu_float32

6 participants