diff --git a/sycl/test-e2e/Matrix/common.hpp b/sycl/test-e2e/Matrix/common.hpp index 155cf012d9754..1e27fe6d7d989 100644 --- a/sycl/test-e2e/Matrix/common.hpp +++ b/sycl/test-e2e/Matrix/common.hpp @@ -64,7 +64,9 @@ void matrix_multiply_ref(Ta *A, Tb *B, Tc *C, int M, int N, int K, acc += make_fp32(va[i]) * make_fp32(vb[i]); else if constexpr (std::is_same_v && std::is_same_v || - std::is_integral_v && std::is_integral_v) + std::is_integral_v && std::is_integral_v || + (std::is_same_v && + std::is_same_v)) acc += va[i] * vb[i]; else if constexpr (std::is_same_v && std::is_same_v) @@ -127,7 +129,8 @@ void matrix_rand(unsigned int rows, unsigned int cols, T *src, T val) { for (unsigned int i = 0; i < rows; i++) { for (unsigned int j = 0; j < cols; j++) { - if constexpr (std::is_same_v || std::is_same_v) { + if constexpr (std::is_same_v || std::is_same_v || + std::is_same_v) { src[i * cols + j] = T(fdistr(dev)); } else if constexpr (std::is_same_v || std::is_same_v) {