Skip to content

Conversation

@arsenm
Copy link
Contributor

@arsenm arsenm commented Dec 4, 2025

__lane_id already exists and is identical.

__lane_id already exists and is identical.
@arsenm arsenm requested a review from a team as a code owner December 4, 2025 23:08
Copilot AI review requested due to automatic review settings December 4, 2025 23:08
@arsenm arsenm requested review from a team as code owners December 4, 2025 23:08
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

This PR replaces all usages of the deprecated __ockl_lane_u32() function with the equivalent __lane_id() function across HIP device code and tests. The __lane_id() function is functionally identical but represents the preferred API going forward.

  • Replaced __ockl_lane_u32() with __lane_id() in warp sync functions
  • Updated performance test code to use the new lane ID function
  • Refactored test to cache lane ID in a local variable to avoid redundant calls

Reviewed changes

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

File Description
projects/hip-tests/catch/performance/warpSync/warpSync.cc Updated test kernels to use __lane_id() and introduced local variable to cache lane ID
projects/clr/hipamd/include/hip/amd_detail/amd_warp_sync_functions.h Replaced __ockl_lane_u32() with __lane_id() in reduce operation sync function
projects/clr/hipamd/include/hip/amd_detail/amd_device_functions.h Updated lane mask utility functions to use __lane_id()

💡 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants