@@ -1970,10 +1970,11 @@ ExecCGCommand::ExecCGCommand(
1970
1970
}
1971
1971
1972
1972
#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) {
1977
1978
std::string KernelName;
1978
1979
if (SyclKernel && SyclKernel->isCreatedFromSource ()) {
1979
1980
FromSource = true ;
@@ -1990,8 +1991,8 @@ std::string instrumentationGetKernelName(
1990
1991
void instrumentationAddExtraKernelMetadata (
1991
1992
xpti_td *&CmdTraceEvent, const NDRDescT &NDRDesc,
1992
1993
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,
1995
1996
std::vector<ArgDesc> &CGArgs) // CGArgs are not const since they could be
1996
1997
// sorted in this function
1997
1998
{
@@ -2091,8 +2092,7 @@ void instrumentationFillCommonData(
2091
2092
2092
2093
#ifdef XPTI_ENABLE_INSTRUMENTATION
2093
2094
std::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,
2096
2096
const detail::code_location &CodeLoc, bool IsTopCodeLoc,
2097
2097
DeviceKernelInfo &DeviceKernelInfo, queue_impl *Queue,
2098
2098
const NDRDescT &NDRDesc, detail::kernel_bundle_impl *KernelBundleImplPtr,
@@ -2163,7 +2163,7 @@ void ExecCGCommand::emitInstrumentationData() {
2163
2163
auto KernelCG =
2164
2164
reinterpret_cast <detail::CGExecKernel *>(MCommandGroup.get ());
2165
2165
KernelName = instrumentationGetKernelName (
2166
- KernelCG->MSyclKernel , MCommandGroup->MFunctionName ,
2166
+ KernelCG->MSyclKernel . get () , MCommandGroup->MFunctionName ,
2167
2167
KernelCG->getKernelName (), MAddress, FromSource);
2168
2168
} break ;
2169
2169
default :
@@ -2192,8 +2192,8 @@ void ExecCGCommand::emitInstrumentationData() {
2192
2192
reinterpret_cast <detail::CGExecKernel *>(MCommandGroup.get ());
2193
2193
instrumentationAddExtraKernelMetadata (
2194
2194
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 );
2197
2197
}
2198
2198
2199
2199
xptiNotifySubscribers (
0 commit comments