From d8e4d200f0e28cf5edf5aa3e4dec0c9350db6a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Wed, 4 Oct 2023 09:16:30 +0200 Subject: [PATCH] add macro to print results to console --- sycl_comp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sycl_comp.cpp b/sycl_comp.cpp index 5394fd8..63d5779 100644 --- a/sycl_comp.cpp +++ b/sycl_comp.cpp @@ -13,6 +13,11 @@ namespace sycl = cl::sycl; #define stream_hex(_val) std::hex << _val << std::dec +#define print_pair(_desc, _chksm, _time) \ + std::cout << _desc << "\n\t" \ + << "\t-> Check: 0x" << stream_hex(_chksm) \ + << "\tRuntime: " << _time << " us\n\n" + template auto matrixMultCPU(const Matrix &matA, const Matrix &matB) { Matrix res(matA.rows, matB.cols);