Use fixed size type for queue type arguments.
Change-Id: I81b605c9cc9b18bcef043a4f0292212241ce5987
[ROCm/ROCR-Runtime commit: bc43f97964]
This commit is contained in:
@@ -264,7 +264,7 @@ hsa_status_t CpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
*((uint32_t*)value) = 0;
|
||||
break;
|
||||
case HSA_AGENT_INFO_QUEUE_TYPE:
|
||||
*((hsa_queue_type_t*)value) = static_cast<hsa_queue_type_t>(0);
|
||||
*((hsa_queue_type32_t*)value) = HSA_QUEUE_TYPE_MULTI;
|
||||
break;
|
||||
case HSA_AGENT_INFO_NODE:
|
||||
// TODO: associate with OS NUMA support (numactl / GetNumaProcessorNode).
|
||||
@@ -360,7 +360,7 @@ hsa_status_t CpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
return HSA_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
hsa_status_t CpuAgent::QueueCreate(size_t size, hsa_queue_type_t queue_type,
|
||||
hsa_status_t CpuAgent::QueueCreate(size_t size, hsa_queue_type32_t queue_type,
|
||||
core::HsaEventCallback event_callback,
|
||||
void* data, uint32_t private_segment_size,
|
||||
uint32_t group_segment_size,
|
||||
|
||||
@@ -733,7 +733,7 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
*((uint32_t*)value) = maxAqlSize_;
|
||||
break;
|
||||
case HSA_AGENT_INFO_QUEUE_TYPE:
|
||||
*((hsa_queue_type_t*)value) = HSA_QUEUE_TYPE_MULTI;
|
||||
*((hsa_queue_type32_t*)value) = HSA_QUEUE_TYPE_MULTI;
|
||||
break;
|
||||
case HSA_AGENT_INFO_NODE:
|
||||
// TODO: associate with OS NUMA support (numactl / GetNumaProcessorNode).
|
||||
@@ -863,7 +863,7 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
return HSA_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
hsa_status_t GpuAgent::QueueCreate(size_t size, hsa_queue_type_t queue_type,
|
||||
hsa_status_t GpuAgent::QueueCreate(size_t size, hsa_queue_type32_t queue_type,
|
||||
core::HsaEventCallback event_callback,
|
||||
void* data, uint32_t private_segment_size,
|
||||
uint32_t group_segment_size,
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
namespace core {
|
||||
HostQueue::HostQueue(hsa_region_t region, uint32_t ring_size,
|
||||
hsa_queue_type_t type, uint32_t features,
|
||||
hsa_queue_type32_t type, uint32_t features,
|
||||
hsa_signal_t doorbell_signal)
|
||||
: Queue(),
|
||||
size_(ring_size),
|
||||
|
||||
@@ -543,7 +543,7 @@ hsa_status_t hsa_agent_major_extension_supported(uint16_t extension, hsa_agent_t
|
||||
///
|
||||
/// @return hsa_status
|
||||
hsa_status_t hsa_queue_create(
|
||||
hsa_agent_t agent_handle, uint32_t size, hsa_queue_type_t type,
|
||||
hsa_agent_t agent_handle, uint32_t size, hsa_queue_type32_t type,
|
||||
void (*callback)(hsa_status_t status, hsa_queue_t* source, void* data),
|
||||
void* data, uint32_t private_segment_size, uint32_t group_segment_size,
|
||||
hsa_queue_t** queue) {
|
||||
@@ -557,7 +557,7 @@ hsa_status_t hsa_queue_create(
|
||||
core::Agent* agent = core::Agent::Convert(agent_handle);
|
||||
IS_VALID(agent);
|
||||
|
||||
hsa_queue_type_t agent_queue_type = HSA_QUEUE_TYPE_MULTI;
|
||||
hsa_queue_type32_t agent_queue_type = HSA_QUEUE_TYPE_MULTI;
|
||||
hsa_status_t status =
|
||||
agent->GetInfo(HSA_AGENT_INFO_QUEUE_TYPE, &agent_queue_type);
|
||||
assert(HSA_STATUS_SUCCESS == status);
|
||||
@@ -586,7 +586,7 @@ hsa_status_t hsa_queue_create(
|
||||
}
|
||||
|
||||
hsa_status_t hsa_soft_queue_create(hsa_region_t region, uint32_t size,
|
||||
hsa_queue_type_t type, uint32_t features,
|
||||
hsa_queue_type32_t type, uint32_t features,
|
||||
hsa_signal_t doorbell_signal,
|
||||
hsa_queue_t** queue) {
|
||||
IS_OPEN();
|
||||
|
||||
Reference in New Issue
Block a user