Skip to content

Skip test_broadcast_fn_map(2) on XPU#3112

Open
Silv3S wants to merge 1 commit intointel:mainfrom
Silv3S:map_map2
Open

Skip test_broadcast_fn_map(2) on XPU#3112
Silv3S wants to merge 1 commit intointel:mainfrom
Silv3S:map_map2

Conversation

@Silv3S
Copy link
Contributor

@Silv3S Silv3S commented Mar 20, 2026

Fixes #2519
map and map2_ are only implemented on CPU tensors. CUDA has this tests skipped and XPU wasn't included on skiplist

@Silv3S Silv3S added disable_e2e Disable all e2e test jobs for the PR disable_distributed Disable distributed UT test jobs for the PR disable_win Disable Windows CI test jobs for the PR labels Mar 20, 2026
Copilot AI review requested due to automatic review settings March 20, 2026 18:08
@Silv3S Silv3S added disable_accelerate Disable accelerate test job in PR CI testing disable_transformers Disable transformers UT test in PR CI labels Mar 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the XPU test suite to avoid running map/map2 broadcast tests on XPU, matching CUDA behavior, because these ops (and their in-place variants) are CPU-only.

Changes:

  • Extend test_broadcast to early-return for fn in ["map", "map2"] on XPU as well as CUDA.
  • Remove test_broadcast_fn_map_xpu / test_broadcast_fn_map2_xpu from the XPU skip list since they should no longer fail.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/xpu/test_torch_xpu.py Skips map/map2 paths on XPU devices inside test_broadcast to prevent CPU-only op usage.
test/xpu/skip_list_common.py Drops now-unnecessary skip-list entries for the broadcast map/map2 XPU tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

disable_accelerate Disable accelerate test job in PR CI testing disable_distributed Disable distributed UT test jobs for the PR disable_e2e Disable all e2e test jobs for the PR disable_transformers Disable transformers UT test in PR CI disable_win Disable Windows CI test jobs for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[upstream_ut] TypeError: map2_ is only implemented on CPU tensors

2 participants