diff --git a/SYCL/Matrix/element_wise_all_ops_half.cpp b/SYCL/Matrix/element_wise_all_ops_half.cpp index 7a7f77f259..c1cc5acf68 100644 --- a/SYCL/Matrix/element_wise_all_ops_half.cpp +++ b/SYCL/Matrix/element_wise_all_ops_half.cpp @@ -41,10 +41,9 @@ template struct big_matrix { }; template -void assert_ops_ref(/*const T &C*/ accessor - C, - const float ref) { +void assert_ops_ref( + accessor C, + const float ref) { for (size_t i = 0; i < M; i++) for (size_t j = 0; j < N; j++) { auto diff = C[i][j] - ref; @@ -204,7 +203,8 @@ void matrix_verify_logic(queue q, big_matrix &A, nd_range<2> &r, if (wi_slice_a[i]) { if (wi_slice_a[i] > 2.0 || wi_slice_a[i] >= 2.0 || wi_slice_a[i] < 2.0 || wi_slice_a[i] <= 2.0) { - T val = (wi_slice_a[i] != 2.0) ? wi_slice_a[i] : 2.0; + T val = (wi_slice_a[i] != 2.0) ? wi_slice_a[i] + : static_cast(2.0); val--; val++; if (wi_slice_a[i] == 2.0) {