Skip to content

Commit a6a316c

Browse files
committed
Inline trace functionms
1 parent 479854d commit a6a316c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sycl/source/detail/kernel_program_cache.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ class KernelProgramCache {
181181

182182
/* Sends message to std:cerr stream when SYCL_CACHE_TRACE environemnt is
183183
* set.*/
184-
static void traceProgram(const std::string &Msg,
185-
const ProgramCacheKeyT &CacheKey) {
184+
static inline void traceProgram(const std::string &Msg,
185+
const ProgramCacheKeyT &CacheKey) {
186186
static const bool traceEnabled =
187187
SYCLConfig<SYCL_CACHE_TRACE>::isTraceInMemCache();
188188
if (traceEnabled) {
@@ -205,8 +205,9 @@ class KernelProgramCache {
205205

206206
/* Sends message to std:cerr stream when SYCL_CACHE_TRACE environemnt is
207207
* set.*/
208-
static void traceKernel(const std::string &Msg, const std::string &KernelName,
209-
bool IsKernelFastCache = false) {
208+
static inline void traceKernel(const std::string &Msg,
209+
const std::string &KernelName,
210+
bool IsKernelFastCache = false) {
210211
static const bool traceEnabled =
211212
SYCLConfig<SYCL_CACHE_TRACE>::isTraceInMemCache();
212213
if (traceEnabled) {

0 commit comments

Comments
 (0)