Skip to content

Remove duplicated TensorCompare kernels - #3535

Merged
chuanqi129 merged 5 commits into
intel:mainfrom
Silv3S:clippy
May 12, 2026
Merged

Remove duplicated TensorCompare kernels#3535
chuanqi129 merged 5 commits into
intel:mainfrom
Silv3S:clippy

Conversation

@Silv3S

@Silv3S Silv3S commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

During #3425 analysis I found duplicated where/clip kernels. It seems to be dead code, worth removal

Copilot AI review requested due to automatic review settings April 29, 2026 17:29
@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 disable_accelerate Disable accelerate test job in PR CI testing disable_transformers Disable transformers UT test in PR CI disable_windows_ut Disable Windows UT jobs for the PR labels Apr 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Read skill file(s): .github/skills/xpu-ops-pr-review/SKILL.md.

This PR removes a dead/duplicated SYCL implementation file for TensorCompare-related kernels (where/clamp), reducing duplicate code paths in the XPU backend.

Changes:

  • Delete src/ATen/native/xpu/sycl/TensorCompare.cpp, whose WhereFunctor/Clamp* code is already present in TensorCompareKernels.cpp.
  • Rely on the existing TensorCompareKernels.cpp implementations for where/clamp/clamp_scalar kernels (no functional change expected).

@BBBela BBBela left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Always good to remove some dead and unused code.
Thanks for those changes!

Copilot AI review requested due to automatic review settings May 4, 2026 07:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings May 11, 2026 04:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@kdrozd-dev kdrozd-dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Silv3S

Silv3S commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@chuanqi129
chuanqi129 merged commit 9c719e9 into intel:main May 12, 2026
39 of 40 checks passed
@chuanqi129

Copy link
Copy Markdown
Contributor

✅ PR has been successfully merged by @Silv3S.

@Silv3S
Silv3S deleted the clippy branch May 12, 2026 05:14
Copilot AI pushed a commit that referenced this pull request May 12, 2026
During #3425 analysis I
found duplicated where/clip kernels. It seems to be dead code, worth
removal
Co-authored-by: liangan1 <46986936+liangan1@users.noreply.github.com>
zxd1997066 pushed a commit that referenced this pull request May 15, 2026
During #3425 analysis I
found duplicated where/clip kernels. It seems to be dead code, worth
removal
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 disable_windows_ut Disable Windows UT jobs for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants