Add function to flush caches

Related-To: NEO-2536

Change-Id: Ifbf7e7a42514dd66eb0914f9d13407287481e123
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2019-03-22 13:40:41 +01:00
committed by sys_ocldev
parent 8a2917dd2c
commit 4eb48e3d06
26 changed files with 297 additions and 30 deletions

View File

@@ -22,4 +22,11 @@ void CommandQueue::processProperties(const cl_queue_properties *properties) {
void getIntelQueueInfo(CommandQueue *queue, cl_command_queue_info paramName, GetInfoHelper &getInfoHelper, cl_int &retVal) {
retVal = CL_INVALID_VALUE;
}
bool isCommandWithoutKernel(uint32_t commandType) {
return ((commandType == CL_COMMAND_BARRIER) || (commandType == CL_COMMAND_MARKER) ||
(commandType == CL_COMMAND_MIGRATE_MEM_OBJECTS) ||
(commandType == CL_COMMAND_SVM_MAP) ||
(commandType == CL_COMMAND_SVM_UNMAP) ||
(commandType == CL_COMMAND_SVM_FREE));
}
} // namespace NEO

View File

@@ -21,6 +21,8 @@ inline void releaseVirtualEvent(CommandQueue &commandQueue) {
inline void releaseVirtualEvent(DeviceQueue &commandQueue) {
}
bool isCommandWithoutKernel(uint32_t commandType);
template <typename QueueType>
void retainQueue(cl_command_queue commandQueue, cl_int &retVal) {
using BaseType = typename QueueType::BaseType;