-
Notifications
You must be signed in to change notification settings - Fork 97
[hip-tests] Move __hipGetPCH out of bit_extract and add some context #1928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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_pchtest sample with proper context and documentation - Removed the unrelated
__hipGetPCHtest code frombit_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.
d94f485 to
1f6e24a
Compare
Merge pull request #1928 from corey-derochie-amd/2.27.7-sync
|
@ROCm/hip-tests-reviewers ping :) |
@ROCm/hip-tests-reviewers ping :) |
Motivation
Currently there is a wild unrelated
__hipGetPCHcall inside thebit_extracttest.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 .