Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions sycl/source/detail/kernel_program_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ class KernelProgramCache {

// Sends message to std:cerr stream when SYCL_CACHE_TRACE environemnt is
// set.
static inline void traceProgram(const std::string &Msg,
template <typename MsgType>
static inline void traceProgram(const MsgType &Msg,
const ProgramCacheKeyT &CacheKey) {
if (!SYCLConfig<SYCL_CACHE_TRACE>::isTraceInMemCache())
return;
Expand Down Expand Up @@ -362,8 +363,9 @@ class KernelProgramCache {

// Sends message to std:cerr stream when SYCL_CACHE_TRACE environemnt is
// set.
static inline void traceKernel(std::string_view Msg,
std::string_view KernelName,
template <typename MsgType>
static inline void traceKernel(const MsgType &Msg,
KernelNameStrRefT KernelName,
bool IsFastKernelCache = false) {
if (!SYCLConfig<SYCL_CACHE_TRACE>::isTraceInMemCache())
return;
Expand Down
Loading