Skip to content

Commit 041fcbe

Browse files
committed
using urQueueFinish
1 parent 81d3207 commit 041fcbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,11 @@ ur_result_t SanitizerInterceptor::postLaunchKernel(ur_kernel_handle_t Kernel,
401401
auto Program = GetProgram(Kernel);
402402
ur_event_handle_t ReadEvent{};
403403

404+
// FIXME: We must use urQueueFinish, until we support urEventSetCallback
405+
context.urDdiTable.Queue.pfnFinish(Queue);
406+
404407
// If kernel has defined SPIR_DeviceSanitizerReportMem, then we try to read it
405408
// to host, but it's okay that it isn't defined
406-
// FIXME: We must use block operation here, until we support urEventSetCallback
407409
auto Result = context.urDdiTable.Enqueue.pfnDeviceGlobalVariableRead(
408410
Queue, Program, kSPIR_DeviceSanitizerReportMem, true,
409411
sizeof(LaunchInfo.SPIR_DeviceSanitizerReportMem), 0,

0 commit comments

Comments
 (0)