Skip to content

[SYCL free func] Refactor Bucketization by free function - #5139

Open
minmingzhu wants to merge 1 commit into
intel:mainfrom
minmingzhu:minmingz/bucketization-free-function
Open

[SYCL free func] Refactor Bucketization by free function#5139
minmingzhu wants to merge 1 commit into
intel:mainfrom
minmingzhu:minmingz/bucketization-free-function

Conversation

@minmingzhu

Copy link
Copy Markdown

BucketizationKernels.cpp — Kernel UT Report

  • SYCL kernel conversion check: In src/ATen/native/xpu/sycl/BucketizationKernels.cpp, searchsorted_kernel_impl is implemented/launched as a free function via SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((syclexp::nd_range_kernel<1>)) (lines 81–82) and sycl_kernel_submit<...>() (lines 152–158).

  • The searchsorted_kernel wrapper remains an ordinary host-side dispatch function; there is no remaining direct SYCL launch functor for this kernel.

  • Changed-kernel related UTs run in the current PyTorch/XPU integration:

  1. In PyTorch (/workspace1/minminz/workpath/pytorch-public):
    • Command: pytest /workspace1/minminz/workpath/torch-xpu-ops/test/xpu/test_ops_xpu.py -v -k "searchsorted or bucketize"
    • Result: 67 passed, 4 skipped, 32934 deselected, 9 xfailed.
  2. XPU build:
    • Command: pip install -e . -v --no-build-isolation
    • Result: completed successfully.

@github-actions github-actions Bot added disable_e2e Disable all e2e test jobs for the PR disable_distributed Disable distributed UT test jobs for the PR labels Aug 28, 2026
@minmingzhu
minmingzhu force-pushed the minmingz/bucketization-free-function branch from f9ecd42 to fe15953 Compare August 28, 2026 07:14
@minmingzhu
minmingzhu marked this pull request as ready for review August 28, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disable_distributed Disable distributed UT test jobs for the PR disable_e2e Disable all e2e test jobs for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants