Globally enable priority hints extension.

Change-Id: I9f3b8d3cf1bedb41d9e0622ff514bf76b4518d8c
This commit is contained in:
Zdunowski, Piotr
2018-01-24 12:00:27 +01:00
committed by sys_ocldev
parent 5b0ebe25d5
commit 0b6b12ea57
17 changed files with 87 additions and 123 deletions

View File

@@ -41,21 +41,22 @@ class IndirectHeap;
class Kernel;
class MemObj;
enum class QueuePriority {
LOW,
MEDIUM,
HIGH
};
template <>
struct OpenCLObjectMapper<_cl_command_queue> {
typedef class CommandQueue DerivedType;
};
////////////////////////////////////////////////////////////////////////////////
// CommandQueue - Core implementation
////////////////////////////////////////////////////////////////////////////////
class CommandQueue : public BaseObject<_cl_command_queue> {
public:
static const cl_ulong objectMagic = 0x1234567890987654LL;
enum { NUM_HEAPS = IndirectHeap::NUM_TYPES };
bool low_priority;
static CommandQueue *create(Context *context, Device *device,
const cl_queue_properties *properties,
cl_int &errcodeRet);
@@ -381,6 +382,10 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
return perfCountersUserRegistersNumber;
}
QueuePriority getPriority() const {
return priority;
}
// taskCount of last task
uint32_t taskCount;
@@ -400,6 +405,8 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
cl_command_queue_properties commandQueueProperties;
QueuePriority priority;
bool perfCountersEnabled;
cl_uint perfCountersConfig;
uint32_t perfCountersUserRegistersNumber;