@@ -2380,8 +2380,7 @@ static ur_result_t SetKernelParamsAndLaunch(
2380
2380
const QueueImplPtr &Queue, std::vector<ArgDesc> &Args,
2381
2381
const std::shared_ptr<device_image_impl> &DeviceImageImpl,
2382
2382
ur_kernel_handle_t Kernel, NDRDescT &NDRDesc,
2383
- std::vector<ur_event_handle_t > &RawEvents,
2384
- const detail::EventImplPtr &OutEventImpl,
2383
+ std::vector<ur_event_handle_t > &RawEvents, detail::event_impl *OutEventImpl,
2385
2384
const KernelArgMask *EliminatedArgMask,
2386
2385
const std::function<void *(Requirement *Req)> &getMemAllocationFunc,
2387
2386
bool IsCooperative, bool KernelUsesClusterLaunch,
@@ -2651,9 +2650,8 @@ ur_result_t enqueueImpCommandBufferKernel(
2651
2650
void enqueueImpKernel (
2652
2651
const QueueImplPtr &Queue, NDRDescT &NDRDesc, std::vector<ArgDesc> &Args,
2653
2652
const std::shared_ptr<detail::kernel_bundle_impl> &KernelBundleImplPtr,
2654
- const std::shared_ptr<detail::kernel_impl> &MSyclKernel,
2655
- KernelNameStrRefT KernelName, std::vector<ur_event_handle_t > &RawEvents,
2656
- const detail::EventImplPtr &OutEventImpl,
2653
+ const detail::kernel_impl *MSyclKernel, KernelNameStrRefT KernelName,
2654
+ std::vector<ur_event_handle_t > &RawEvents, detail::event_impl *OutEventImpl,
2657
2655
const std::function<void *(Requirement *Req)> &getMemAllocationFunc,
2658
2656
ur_kernel_cache_config_t KernelCacheConfig, const bool KernelIsCooperative,
2659
2657
const bool KernelUsesClusterLaunch, const size_t WorkGroupMemorySize,
@@ -2761,7 +2759,7 @@ ur_result_t enqueueReadWriteHostPipe(const QueueImplPtr &Queue,
2761
2759
const std::string &PipeName, bool blocking,
2762
2760
void *ptr, size_t size,
2763
2761
std::vector<ur_event_handle_t > &RawEvents,
2764
- const detail::EventImplPtr & OutEventImpl,
2762
+ detail::event_impl * OutEventImpl,
2765
2763
bool read) {
2766
2764
assert (Queue &&
2767
2765
" ReadWrite host pipe submissions should have an associated queue" );
@@ -3122,7 +3120,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
3122
3120
3123
3121
ur_event_handle_t UREvent = nullptr ;
3124
3122
ur_event_handle_t *Event = DiscardUrEvent ? nullptr : &UREvent;
3125
- detail::EventImplPtr EventImpl = DiscardUrEvent ? nullptr : MEvent;
3123
+ detail::event_impl * EventImpl = DiscardUrEvent ? nullptr : MEvent. get () ;
3126
3124
3127
3125
auto SetEventHandleOrDiscard = [&]() {
3128
3126
if (Event)
@@ -3237,7 +3235,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
3237
3235
(!SyclKernel || SyclKernel->hasSYCLMetadata ()) &&
3238
3236
ProgramManager::getInstance ().kernelUsesAssert (KernelName);
3239
3237
if (KernelUsesAssert) {
3240
- EventImpl = MEvent;
3238
+ EventImpl = MEvent. get () ;
3241
3239
}
3242
3240
}
3243
3241
@@ -3248,7 +3246,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
3248
3246
assert (BinImage && " Failed to obtain a binary image." );
3249
3247
}
3250
3248
enqueueImpKernel (MQueue, NDRDesc, Args, ExecKernel->getKernelBundle (),
3251
- SyclKernel, KernelName, RawEvents, EventImpl,
3249
+ SyclKernel. get () , KernelName, RawEvents, EventImpl,
3252
3250
getMemAllocationFunc, ExecKernel->MKernelCacheConfig ,
3253
3251
ExecKernel->MKernelIsCooperative ,
3254
3252
ExecKernel->MKernelUsesClusterLaunch ,
@@ -3645,7 +3643,7 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
3645
3643
bool read = ExecReadWriteHostPipe->isReadHostPipe ();
3646
3644
3647
3645
if (!EventImpl) {
3648
- EventImpl = MEvent;
3646
+ EventImpl = MEvent. get () ;
3649
3647
}
3650
3648
return enqueueReadWriteHostPipe (MQueue, pipeName, blocking, hostPtr,
3651
3649
typeSize, RawEvents, EventImpl, read );
0 commit comments