mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
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:
committed by
sys_ocldev
parent
8a2917dd2c
commit
4eb48e3d06
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user