Skip to content

[SYCL free func] Refactor DepthwiseConv3dKernels by free function - #5098

Draft
minmingzhu wants to merge 1 commit into
intel:mainfrom
minmingzhu:minmingz/depthwise-conv3d-free-func
Draft

[SYCL free func] Refactor DepthwiseConv3dKernels by free function#5098
minmingzhu wants to merge 1 commit into
intel:mainfrom
minmingzhu:minmingz/depthwise-conv3d-free-func

Conversation

@minmingzhu

@minmingzhu minmingzhu commented Aug 25, 2026

Copy link
Copy Markdown

DepthwiseConv3dKernels.cpp — Kernel UT Report

  • SYCL kernel conversion check: In src/ATen/native/xpu/sycl/DepthwiseConv3dKernels.cpp, the following kernels are implemented/launched as free functions via SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((...)) and sycl_kernel_submit<...>(...) function pointer:

    • conv_depthwise3d_xpu_fn (line ~45)
    • conv_depthwise3d_xpu_backward_input_fn (line ~135)
    • conv_depthwise3d_xpu_backward_weight_fn (line ~232)
  • No remaining Functor structs in this file — all SYCL kernel launch functors have been converted to free functions.

  • Changed-kernel related UTs:

  1. Test file: test/xpu/test_nn_xpu.py
    • Command: pytest test/xpu/test_nn_xpu.py -v -k "(conv3d or Conv3d) and xpu"
    • Result: 22 passed, 22 skipped, 3459 deselected in 4.99s

Co-authored-by: Copilot copilot@github.com

@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 25, 2026
@minmingzhu
minmingzhu marked this pull request as draft August 25, 2026 08:20
@minmingzhu
minmingzhu marked this pull request as ready for review August 26, 2026 02:48
@minmingzhu
minmingzhu marked this pull request as draft August 26, 2026 03:02
Convert 3 kernel functors to free functions:
- ConvDepthwise3dXpuFunctor -> conv_depthwise3d_xpu_fn
- ConvDepthwise3dXpuBackwardInputFunctor -> conv_depthwise3d_xpu_backward_input_fn
- ConvDepthwise3dXpuBackwardWeightFunctor -> conv_depthwise3d_xpu_backward_weight_fn

Test Plan: Build and UT to be run after all PRs are ported.

Co-authored-by: Carson Wang <carson.wang@intel.com>
Co-authored-by: Copilot <copilot@github.com>
@minmingzhu
minmingzhu force-pushed the minmingz/depthwise-conv3d-free-func branch from 9767301 to 8d45218 Compare August 26, 2026 03:26
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.

1 participant