@@ -1970,10 +1970,11 @@ ExecCGCommand::ExecCGCommand(
19701970}
19711971
19721972#ifdef XPTI_ENABLE_INSTRUMENTATION
1973- std::string instrumentationGetKernelName (
1974- const std::shared_ptr<detail::kernel_impl> &SyclKernel,
1975- const std::string_view FunctionName, const std::string_view SyclKernelName,
1976- void *&Address, std::optional<bool > &FromSource) {
1973+ std::string instrumentationGetKernelName (const kernel_impl *SyclKernel,
1974+ const std::string_view FunctionName,
1975+ const std::string_view SyclKernelName,
1976+ void *&Address,
1977+ std::optional<bool > &FromSource) {
19771978 std::string KernelName;
19781979 if (SyclKernel && SyclKernel->isCreatedFromSource ()) {
19791980 FromSource = true ;
@@ -1990,8 +1991,8 @@ std::string instrumentationGetKernelName(
19901991void instrumentationAddExtraKernelMetadata (
19911992 xpti_td *&CmdTraceEvent, const NDRDescT &NDRDesc,
19921993 detail::kernel_bundle_impl *KernelBundleImplPtr,
1993- DeviceKernelInfo &DeviceKernelInfo,
1994- const std::shared_ptr<detail::kernel_impl> &SyclKernel, queue_impl *Queue,
1994+ DeviceKernelInfo &DeviceKernelInfo, const kernel_impl *SyclKernel,
1995+ queue_impl *Queue,
19951996 std::vector<ArgDesc> &CGArgs) // CGArgs are not const since they could be
19961997 // sorted in this function
19971998{
@@ -2091,8 +2092,7 @@ void instrumentationFillCommonData(
20912092
20922093#ifdef XPTI_ENABLE_INSTRUMENTATION
20932094std::pair<xpti_td *, uint64_t > emitKernelInstrumentationData (
2094- xpti::stream_id_t StreamID,
2095- const std::shared_ptr<detail::kernel_impl> &SyclKernel,
2095+ xpti::stream_id_t StreamID, const kernel_impl *SyclKernel,
20962096 const detail::code_location &CodeLoc, bool IsTopCodeLoc,
20972097 DeviceKernelInfo &DeviceKernelInfo, queue_impl *Queue,
20982098 const NDRDescT &NDRDesc, detail::kernel_bundle_impl *KernelBundleImplPtr,
@@ -2163,7 +2163,7 @@ void ExecCGCommand::emitInstrumentationData() {
21632163 auto KernelCG =
21642164 reinterpret_cast <detail::CGExecKernel *>(MCommandGroup.get ());
21652165 KernelName = instrumentationGetKernelName (
2166- KernelCG->MSyclKernel , MCommandGroup->MFunctionName ,
2166+ KernelCG->MSyclKernel . get () , MCommandGroup->MFunctionName ,
21672167 KernelCG->getKernelName (), MAddress, FromSource);
21682168 } break ;
21692169 default :
@@ -2192,8 +2192,8 @@ void ExecCGCommand::emitInstrumentationData() {
21922192 reinterpret_cast <detail::CGExecKernel *>(MCommandGroup.get ());
21932193 instrumentationAddExtraKernelMetadata (
21942194 CmdTraceEvent, KernelCG->MNDRDesc , KernelCG->getKernelBundle ().get (),
2195- KernelCG->MDeviceKernelInfo , KernelCG->MSyclKernel , MQueue .get (),
2196- KernelCG->MArgs );
2195+ KernelCG->MDeviceKernelInfo , KernelCG->MSyclKernel .get (),
2196+ MQueue. get (), KernelCG->MArgs );
21972197 }
21982198
21992199 xptiNotifySubscribers (
0 commit comments