add macro to print results to console

This commit is contained in:
Max Lübke 2023-10-04 09:16:30 +02:00
parent 9b9167e810
commit d8e4d200f0

View File

@ -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 <class T>
auto matrixMultCPU(const Matrix<T> &matA, const Matrix<T> &matB) {
Matrix<T> res(matA.rows, matB.cols);