Skip to content

Conversation

CuiYifeng
Copy link
Contributor

This PR refactors how the maximum work group size for a SYCL kernel is retrieved in the syclMaxWorkGroupSize function. The manual construction and querying of a kernel bundle is replaced with sycl::ext::oneapi::get_kernel_info for directly obtaining the work group size, simplifying the code and improving clarity.

@CuiYifeng CuiYifeng added this to the PT2.9 milestone Aug 29, 2025
@CuiYifeng CuiYifeng added the windows_ci Only for Windows CI trigger label Aug 29, 2025
@Copilot Copilot AI review requested due to automatic review settings August 29, 2025 08:05
Copy link
Contributor

@Copilot 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

This PR simplifies the SYCL kernel work group size retrieval by replacing manual kernel bundle construction with the recommended sycl::ext::oneapi::get_kernel_info API. This change reduces code complexity and improves maintainability.

Key changes:

  • Replaces 4-line manual kernel bundle creation and querying with a single direct API call
  • Uses the oneAPI extension for more streamlined kernel information retrieval

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@CuiYifeng CuiYifeng force-pushed the yifeng/shortcut_sycl_api branch from 0040fa0 to 9cd1bb6 Compare September 4, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows_ci Only for Windows CI trigger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant