Adding queue information queries

New hsa_amd_queue_get_info API to support:

- HSA_AMD_QUEUE_INFO_AGENT: Agent that owns the underlying HW queue

- HSA_AMD_QUEUE_INFO_DOORBELL_ID: KFD doorbell ID of the queue
completion signal.

Change-Id: I98842131bcbdd08552649791a5d43e578a615808


[ROCm/ROCR-Runtime commit: d6d5786051]
This commit is contained in:
David Yat Sin
2023-12-08 00:14:12 +00:00
parent 395fd2d230
commit ed7cdb88e4
14 changed files with 90 additions and 4 deletions
@@ -1298,6 +1298,11 @@ hsa_status_t HSA_API hsa_amd_agent_set_async_scratch_limit(hsa_agent_t agent, si
return amdExtTable->hsa_amd_agent_set_async_scratch_limit_fn(agent, threshold);
}
hsa_status_t HSA_API hsa_amd_queue_get_info(hsa_queue_t* queue,
hsa_queue_info_attribute_t attribute, void* value) {
return amdExtTable->hsa_amd_queue_get_info_fn(queue, attribute, value);
}
// Tools only table interfaces.
namespace rocr {