Skip to content

Commit 11155d1

Browse files
Build error fix after pulling sycl branch
1 parent e01e682 commit 11155d1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sycl/plugins/esimd_emulator/pi_esimd_emulator.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,13 @@ pi_result piQueueFinish(pi_queue) {
865865
CONTINUE_NO_IMPLEMENTATION;
866866
}
867867

868+
pi_result piQueueFlush(pi_queue) {
869+
// No-op as enqueued commands with ESIMD_EMULATOR plugin are blocking
870+
// ones that do not return until their completion - kernel execution
871+
// and memory read.
872+
CONTINUE_NO_IMPLEMENTATION;
873+
}
874+
868875
pi_result piextQueueGetNativeHandle(pi_queue, pi_native_handle *) {
869876
DIE_NO_IMPLEMENTATION;
870877
}

sycl/source/handler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,12 @@ event handler::finalize() {
212212
backend::ext_intel_esimd_emulator) {
213213
// Dims==0 for 'single_task() - void(void) type'
214214
uint32_t Dims = (MArgs.size() > 0) ? MNDRDesc.Dims : 0;
215-
return MQueue->getPlugin()
215+
MQueue->getPlugin()
216216
.call<detail::PiApiKind::piEnqueueKernelLaunch>(
217217
nullptr, reinterpret_cast<pi_kernel>(MHostKernel->getPtr()),
218218
Dims, &MNDRDesc.GlobalOffset[0], &MNDRDesc.GlobalSize[0],
219219
&MNDRDesc.LocalSize[0], 0, nullptr, nullptr);
220+
return CL_SUCCESS;
220221
} else {
221222
return enqueueImpKernel(MQueue, MNDRDesc, MArgs, KernelBundleImpPtr,
222223
MKernel, MKernelName, MOSModuleHandle,

0 commit comments

Comments
 (0)