Skip to content

rocr: add vhsakmt pointer query#324

Closed
rocm-devops wants to merge 1 commit intoamd-stagingfrom
honghuan/pr_virito
Closed

rocr: add vhsakmt pointer query#324
rocm-devops wants to merge 1 commit intoamd-stagingfrom
honghuan/pr_virito

Conversation

@rocm-devops
Copy link

rocr: Add fallback to vhsakmt pointer query for virtualized environments

This patch enhances pointer query functionality by adding support for
virtualized HSAKMT environments. When the standard hsaKmtQueryPointerInfo
call fails or returns unknown pointer type, the code now falls back to
vhsaKmtQueryPointerInfo when HSAKMT_VIRTIO_ENABLED is defined.

Changes:

  • Add conditional include for hsakmt/hsakmt_virtio.h
  • Implement fallback mechanism in Runtime::PtrInfo()
  • Refactor error handling to support dual query paths
  • Maintain backward compatibility with existing HSAKMT implementations

This enables proper pointer information retrieval in virtualized GPU
environments while preserving existing functionality for native setups.

Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>
@amd-hsivasun
Copy link

Imported to rocm-systems

@jayhawk-commits jayhawk-commits deleted the honghuan/pr_virito branch August 11, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants