Skip to content

Conversation

@jmmartinez
Copy link
Contributor

Motivation

Currently there is a wild unrelated __hipGetPCH call inside the bit_extract test.

This function is pretty much legacy; but in the meantime, lets move it to its own test and not leave it polluting bit_extract.

This was originally submitted to ROCm/hip-tests#471 .

@jmmartinez jmmartinez self-assigned this Nov 19, 2025
@jmmartinez jmmartinez requested a review from a team as a code owner November 19, 2025 09:15
Copilot AI review requested due to automatic review settings November 19, 2025 09:15
@jmmartinez jmmartinez requested a review from a team as a code owner November 19, 2025 09:15
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 extracts the __hipGetPCH functionality test from the bit_extract sample into a dedicated test file, improving code organization and adding documentation about this legacy API.

Key changes:

  • Created a new get_hip_pch test sample with proper context and documentation
  • Removed the unrelated __hipGetPCH test code from bit_extract
  • Added explanatory comments about the legacy nature and historical usage of the PCH API

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
projects/hip-tests/samples/0_Intro/get_hip_pch/get_hip_pch.cpp New test file dedicated to testing __hipGetPCH functionality with proper error checking and context
projects/hip-tests/samples/0_Intro/get_hip_pch/README.md Documentation for the new get_hip_pch test
projects/hip-tests/samples/0_Intro/get_hip_pch/CMakeLists.txt Build configuration for the new test
projects/hip-tests/samples/0_Intro/bit_extract/bit_extract.cpp Removed unrelated __hipGetPCH test code
projects/hip-tests/samples/0_Intro/bit_extract/CMakeLists.txt Removed PCH-related build configuration no longer needed
projects/hip-tests/samples/0_Intro/CMakeLists.txt Added the new get_hip_pch subdirectory to the build

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jmmartinez jmmartinez force-pushed the users/jmmartinez/hip-tests/getPCH branch from d94f485 to 1f6e24a Compare November 20, 2025 14:00
jamessiddeley-amd pushed a commit that referenced this pull request Dec 11, 2025
Merge pull request #1928 from corey-derochie-amd/2.27.7-sync
@jmmartinez
Copy link
Contributor Author

@ROCm/hip-tests-reviewers ping :)

@jmmartinez
Copy link
Contributor Author

@ROCm/hip-tests-reviewers ping :)

@ROCm/hip-tests-reviewers ping :)

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.

2 participants