Skip to content

[rocprofiler-sdk] HSA API changes for HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x0A#3823

Merged
venkat1361 merged 10 commits intodevelopfrom
users/venkat1361/add-new-hsa-api-version-10
Mar 9, 2026
Merged

[rocprofiler-sdk] HSA API changes for HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x0A#3823
venkat1361 merged 10 commits intodevelopfrom
users/venkat1361/add-new-hsa-api-version-10

Conversation

@venkat1361
Copy link
Contributor

@venkat1361 venkat1361 commented Mar 6, 2026

Motivation

  • Updates rocprofiler-sdk’s HSA AMD-EXT API surface to recognize the new HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x0A

Technical Details

  • Adds tracing metadata/plumbing for hsa_amd_memory_async_batch_copy gated on HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x0A.
  • Bumps AMD-EXT table ABI version expectations for step 0x0A and enforces the new function-pointer slot ordering.
  • Adds fmt formatters for the new hsa_amd_memory_copy_op_* types (step 0x0A).

JIRA ID

Test Plan

  • working builds in CI checks

Test Result

  • builds without issue.

Submission Checklist

@venkat1361 venkat1361 requested review from a team as code owners March 6, 2026 01:45
Copilot AI review requested due to automatic review settings March 6, 2026 01:45
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

Updates rocprofiler-sdk’s HSA AMD-EXT API surface to recognize the new HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x0A, keeping API IDs, argument capture, ABI enforcement, and formatting utilities aligned with the updated HSA table.

Changes:

  • Adds tracing metadata/plumbing for hsa_amd_memory_async_batch_copy gated on HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x0A.
  • Bumps AMD-EXT table ABI version expectations for step 0x0A and enforces the new function-pointer slot ordering.
  • Adds fmt formatters for the new hsa_amd_memory_copy_op_* types (step 0x0A).

Reviewed changes

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

Show a summary per file
File Description
projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/hsa/hsa.def.cpp Registers the new AMD-EXT API entry for tracing when step version >= 0x0A
projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/hsa/details/fmt.hpp Adds fmt::formatter specializations for new memory copy op types
projects/rocprofiler-sdk/source/lib/rocprofiler-sdk/hsa/abi.cpp Updates ABI versioning and function pointer index enforcement for step 0x0A
projects/rocprofiler-sdk/source/include/rocprofiler-sdk/hsa/api_args.h Adds argument-union storage for hsa_amd_memory_async_batch_copy
projects/rocprofiler-sdk/source/include/rocprofiler-sdk/hsa/amd_ext_api_id.h Introduces a new AMD-EXT API ID for hsa_amd_memory_async_batch_copy
projects/rocprofiler-sdk/source/include/rocprofiler-sdk/cxx/enum_string.hpp Adds enum-string label and updates step-version static_assert counts for 0x0A

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

@venkat1361 venkat1361 requested a review from a team as a code owner March 6, 2026 02:00
@venkat1361 venkat1361 changed the title [rocprofiler-sdk] New HSA API changes for HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x0A [rocprofiler-sdk] HSA API changes for HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x0A Mar 6, 2026
@github-actions github-actions bot added the github actions Pull requests that update GitHub Actions code label Mar 6, 2026
@venkat1361 venkat1361 requested a review from jrmadsen March 6, 2026 20:26
@venkat1361
Copy link
Contributor Author

venkat1361 commented Mar 6, 2026

I have also updated workflows to use cmake 3.24 bc rocprofiler-register requires it from this commit #1243

@venkat1361 venkat1361 removed the request for review from jrmadsen March 9, 2026 21:00
@venkat1361 venkat1361 dismissed jrmadsen’s stale review March 9, 2026 21:01

stale review.

Copy link
Collaborator

@jbonnell-amd jbonnell-amd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.github/workflows/rocprofiler-sdk-continuous_integration.yml changes look good

@venkat1361 venkat1361 merged commit ce42822 into develop Mar 9, 2026
36 of 45 checks passed
@venkat1361 venkat1361 deleted the users/venkat1361/add-new-hsa-api-version-10 branch March 9, 2026 21:03
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.

6 participants