Skip to content

Revert "feat(hipfile): Add getStats functions to public api (#8252)" - #9260

Merged
derobins merged 1 commit into
developfrom
users/derobins/revert_stats_api
Jul 25, 2026
Merged

derobins merged 1 commit into
developfrom
users/derobins/revert_stats_api

Conversation

@derobins

Copy link
Copy Markdown
Contributor

Motivation

The stats API changes are causing build failures in the profiler code. We are reverting this temporarily and will set up a PR once we've ensured that our API changes will no longer break the profiler.

Technical Details

This reverts commit a3c059c.

Issue Tracking

JIRA ID: AIHIPFILE-240

Test Plan

CI passes

Test Result

Success

Submission Checklist

Copilot AI review requested due to automatic review settings July 25, 2026 19:09
@derobins
derobins requested a review from a team as a code owner July 25, 2026 19:09
@therock-pr-bot

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
🌿 Branch Name ✅ Pass —
📝 PR Title/Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ❌ Fail Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: projects/hipfile/include/hipfile-api-trace.h, projects/hipfile/include/hipfile.h, projects/hipfile/src/amd_detail/api_trace/api-dispatch-interface.cpp, projects/hipfile/src/amd_detail/api_trace/api-trace-internal.h, projects/hipfile/src/amd_detail/api_trace/api-trace.cpp (+3 more); no test file found
🔎 pre-commit ⏳ Pending ⏳ Still running…
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

⚠️ 1 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

🚫 Please fix the failed policies

  • ❌ Unit Test

The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ Unit Test

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 reverts the recently added hipFile “Stats API” (and its dispatch-table wiring/tests) because it is currently causing build failures in profiler-related code paths, restoring the previous public API surface and dispatch ABI expectations.

Changes:

  • Removes the public Stats API types and entrypoints (hipFileGetStatsL1/L2/L3) from hipfile.h and their runtime implementations.
  • Removes the Stats function pointers from the hipFile dispatch table (api-trace) and updates ABI/versioning assertions accordingly.
  • Removes/updates unit tests that validated the Stats API and dispatch-table population for those entries.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
projects/hipfile/test/amd_detail/hipfile-api.cpp Removes Stats API unit tests and related includes.
projects/hipfile/test/amd_detail/api_trace.cpp Updates dispatch-table tests to stop expecting Stats API function pointers.
projects/hipfile/src/amd_detail/hipfile.cpp Removes hipFileGetStatsL1/L2/L3 runtime implementations.
projects/hipfile/src/amd_detail/api_trace/api-trace.cpp Stops populating Stats API dispatch entries; updates ABI enforcement/versioning assertions for the smaller table.
projects/hipfile/src/amd_detail/api_trace/api-trace-internal.h Removes internal declarations for the Stats API runtime functions.
projects/hipfile/src/amd_detail/api_trace/api-dispatch-interface.cpp Removes exported C shims for hipFileGetStatsL1/L2/L3.
projects/hipfile/include/hipfile.h Removes the public Stats API (types, macros, and function declarations).
projects/hipfile/include/hipfile-api-trace.h Removes Stats function pointer typedefs/members and rolls HIPFILE_RUNTIME_API_TABLE_STEP_VERSION back to 0.

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

@derobins

Copy link
Copy Markdown
Contributor Author

The nightly system tests will fail on this PR due to a known bug in amdgpu. This has nothing to do with the code changes in this PR.

@derobins
derobins merged commit 3aabde9 into develop Jul 25, 2026
115 of 125 checks passed
@derobins
derobins deleted the users/derobins/revert_stats_api branch July 25, 2026 20:45
systems-assistant Bot pushed a commit to ROCm/hipFile that referenced this pull request Jul 25, 2026
 (#8252)" (#9260)

## Motivation

The stats API changes are causing build failures in the profiler code.
We are reverting this temporarily and will set up a PR once we've
ensured that our API changes will no longer break the profiler.

## Technical Details

This reverts commit a3c059c50f9268f5ccb39af3f581213d39a540d8.

## Issue Tracking

JIRA ID: AIHIPFILE-240

## Test Plan

CI passes

## Test Result

Success

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
[rocm-systems] ROCm/rocm-systems#9260 (commit 3aabde9)
amd-josnarlo pushed a commit that referenced this pull request Jul 28, 2026
…9260)

## Motivation

The stats API changes are causing build failures in the profiler code.
We are reverting this temporarily and will set up a PR once we've
ensured that our API changes will no longer break the profiler.

## Technical Details

This reverts commit a3c059c.

## Issue Tracking

JIRA ID: AIHIPFILE-240

## Test Plan

CI passes

## Test Result

Success

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
pull Bot pushed a commit to Stars1233/rocm-systems that referenced this pull request Sep 1, 2026
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.

3 participants