mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Flush command queue in release call
Related-To: NEO-5258 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1f462eb9c2
commit
264d103774
@@ -50,6 +50,18 @@ void releaseQueue(cl_command_queue commandQueue, cl_int &retVal) {
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void releaseQueue<CommandQueue>(cl_command_queue commandQueue, cl_int &retVal) {
|
||||
using BaseType = typename CommandQueue::BaseType;
|
||||
auto queue = castToObject<CommandQueue>(static_cast<BaseType *>(commandQueue));
|
||||
if (queue) {
|
||||
queue->flush();
|
||||
releaseVirtualEvent(*queue);
|
||||
queue->release();
|
||||
retVal = CL_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename QueueType>
|
||||
cl_int getQueueInfo(QueueType *queue,
|
||||
cl_command_queue_info paramName,
|
||||
|
||||
Reference in New Issue
Block a user