Skip to content

Commit c7e7712

Browse files
committed
further minor changes
1 parent dab58c1 commit c7e7712

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sycl/test-e2e/Matrix/common.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ bool matrix_compare(unsigned int rows, unsigned int cols, T1 *src, T2 *ref) {
180180
<< ", Epsilon: " << FLOAT_EPSILON << "\n";
181181
return false;
182182
}
183-
} else if constexpr (exact || std::is_same_v<T1, int32_t> ||
184-
std::is_same_v<T1, int8_t>) {
183+
} else if constexpr (exact || std::is_integral_v<T1>) {
185184
if (src[i * cols + j] != ref[i * cols + j]) {
186185
std::cout << "Incorrect result in matrix."
187186
<< "i: " << i << ", j: " << j

sycl/test-e2e/Matrix/joint_matrix_apply_two_matrices_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ template <typename Tc, size_t M, size_t N>
1515
bool apply_verify(Tc *C, Tc *D, Tc *ref) {
1616
Tc *refcopy = (Tc *)std::malloc(M * N * sizeof(Tc));
1717
memcpy(refcopy, ref, M * N * sizeof(Tc));
18-
matrix_apply(M, N, ref, [](Tc x) { return mul2(x); });
18+
matrix_apply(M, N, ref, mul2<Tc>);
1919
bool res = matrix_compare(M, N, D, ref);
2020

21-
matrix_apply(M, N, refcopy, [](Tc x) { return add5(x); });
21+
matrix_apply(M, N, refcopy, add5<Tc>);
2222
res &= matrix_compare(M, N, C, refcopy);
2323
return res;
2424
}

0 commit comments

Comments
 (0)