Setting Priority for HSA Queue handling Device Profiling
Change-Id: I82072ffb73f56b6effd2878164513ce47014c33f
This commit is contained in:
committed by
Ammar Elwazir
parent
6e32c6d132
commit
4560bcae9f
@@ -42,8 +42,10 @@ bool createHsaQueue(hsa_queue_t** queue, hsa_agent_t gpu_agent) {
|
||||
hsa_status_t status;
|
||||
status = hsa_queue_create(gpu_agent, QUEUE_NUM_PACKETS, HSA_QUEUE_TYPE_SINGLE, NULL, NULL,
|
||||
UINT32_MAX, UINT32_MAX, queue);
|
||||
if (status != HSA_STATUS_SUCCESS) fatal("Queue creation failed");
|
||||
|
||||
if (status != HSA_STATUS_SUCCESS) fatal("queue creation failed");
|
||||
status = hsa_amd_queue_set_priority(*queue, HSA_AMD_QUEUE_PRIORITY_HIGH);
|
||||
if (status != HSA_STATUS_SUCCESS) warning("Device Profiling HSA Queue Priority Set Failed");
|
||||
|
||||
return (status == HSA_STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user