Skip to content

Commit cba5e07

Browse files
authored
[SYCL] Add missing xpti ifdef (#18234)
`xptiTraceEnabled` is only available when `XPTI_ENABLE_INSTRUMENTATION` is on.
1 parent a91b7ce commit cba5e07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/source/detail/queue_impl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,11 @@ event queue_impl::submit_impl(const detail::type_erased_cgfo_ty &CGF,
318318
const SubmissionInfo &SubmitInfo) {
319319
handler Handler(Self, SecondaryQueue, CallerNeedsEvent);
320320
auto &HandlerImpl = detail::getSyclObjImpl(Handler);
321+
#ifdef XPTI_ENABLE_INSTRUMENTATION
321322
if (xptiTraceEnabled()) {
322323
Handler.saveCodeLoc(Loc, IsTopCodeLoc);
323324
}
325+
#endif
324326

325327
{
326328
NestedCallsTracker tracker;

0 commit comments

Comments
 (0)