DPC++ Runtime
Runtime libraries for oneAPI DPC++
tracing.cpp File Reference
#include <exception>
#include <layers/zel_tracing_api.h>
#include <ze_api.h>
#include <sycl/detail/iostream_proxy.hpp>
#include "ze_api.def"
Include dependency graph for tracing.cpp:

Go to the source code of this file.

Macros

#define _ZE_API(call, domain, cb, params_type)   call,
 

Enumerations

enum class  ZEApiKind { _ZE_API }
 

Functions

void enableZeTracing ()
 
void disableZeTracing ()
 

Variables

constexpr auto ZE_CALL_STREAM_NAME = "sycl.experimental.level_zero.call"
 
constexpr auto ZE_DEBUG_STREAM_NAME = "sycl.experimental.level_zero.debug"
 
thread_local uint64_t CallCorrelationID = 0
 
thread_local uint64_t DebugCorrelationID = 0
 
constexpr auto GVerStr = "0.1"
 
constexpr int GMajVer = 0
 
constexpr int GMinVer = 1
 

Macro Definition Documentation

◆ _ZE_API

#define _ZE_API (   call,
  domain,
  cb,
  params_type 
)    call,

Definition at line 38 of file tracing.cpp.

Enumeration Type Documentation

◆ ZEApiKind

enum ZEApiKind
strong
Enumerator
_ZE_API 

Definition at line 37 of file tracing.cpp.

Function Documentation

◆ disableZeTracing()

void disableZeTracing ( )

Definition at line 161 of file tracing.cpp.

References ZE_CALL_STREAM_NAME, and ZE_DEBUG_STREAM_NAME.

◆ enableZeTracing()

void enableZeTracing ( )

Definition at line 43 of file tracing.cpp.

References std::cerr, GMajVer, GMinVer, GVerStr, ZE_CALL_STREAM_NAME, and ZE_DEBUG_STREAM_NAME.

Referenced by piPluginInit().

Variable Documentation

◆ CallCorrelationID

thread_local uint64_t CallCorrelationID = 0

Definition at line 23 of file tracing.cpp.

◆ DebugCorrelationID

thread_local uint64_t DebugCorrelationID = 0

Definition at line 24 of file tracing.cpp.

◆ GMajVer

constexpr int GMajVer = 0
constexpr

◆ GMinVer

constexpr int GMinVer = 1
constexpr

◆ GVerStr

constexpr auto GVerStr = "0.1"
constexpr

◆ ZE_CALL_STREAM_NAME

constexpr auto ZE_CALL_STREAM_NAME = "sycl.experimental.level_zero.call"
constexpr

Definition at line 20 of file tracing.cpp.

Referenced by disableZeTracing(), and enableZeTracing().

◆ ZE_DEBUG_STREAM_NAME

constexpr auto ZE_DEBUG_STREAM_NAME = "sycl.experimental.level_zero.debug"
constexpr

Definition at line 21 of file tracing.cpp.

Referenced by disableZeTracing(), and enableZeTracing().