diff --git a/sycl/source/detail/plugin_printers.hpp b/sycl/source/detail/plugin_printers.hpp index 133de20b35d61..dbbd827d09c11 100644 --- a/sycl/source/detail/plugin_printers.hpp +++ b/sycl/source/detail/plugin_printers.hpp @@ -12,15 +12,26 @@ #include +#include + __SYCL_INLINE_NAMESPACE(cl) { namespace sycl { namespace detail { namespace pi { -template inline void print(T val) { +template +inline typename std::enable_if::value, void>::type +print(T val) { std::cout << " : " << val << std::endl; } +template +inline typename std::enable_if::value, void>::type +print(T val) { + std::cout << " : " << reinterpret_cast(val) + << std::endl; +} + template <> inline void print<>(PiPlatform val) { std::cout << "pi_platform : " << val << std::endl; }