Add hsa_amd_queue_set_priority extension function

Controls dispatch and wavefront scheduling arbitration across quees.

Change-Id: I498f4898b544f79b8fb8514bf7e789ca9da29462
This commit is contained in:
Jay Cornwall
2018-06-19 14:00:46 -05:00
parent 6df6ef778d
commit e388a23344
12 changed files with 111 additions and 4 deletions
+5
View File
@@ -54,6 +54,8 @@
#include "inc/amd_hsa_queue.h"
#include "hsakmt.h"
namespace core {
struct AqlPacket {
@@ -176,6 +178,9 @@ class Queue : public Checked<0xFA3906A679F9DB49>, private LocalQueue {
/// @return hsa_status_t Status of request
virtual hsa_status_t Inactivate() = 0;
/// @brief Change the scheduling priority of the queue
virtual hsa_status_t SetPriority(HSA_QUEUE_PRIORITY priority) = 0;
/// @brief Reads the Read Index of Queue using Acquire semantics
///
/// @return uint64_t Value of Read index