Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 2dde346

Browse files
committed
address review comments
1 parent 534a510 commit 2dde346

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SYCL/InvokeSimd/invoke_simd_conv.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,9 @@ template <class SpmdT, class SimdElemT, bool IsUniform> bool test(queue q) {
133133
uint32_t sg_id = (i - (group_id * GroupSize)) / VL;
134134
SimdElemT test = A[i];
135135
SimdElemT gold = calc((SimdElemT)sg_id);
136-
if (test != gold) {
137-
if (++err_cnt < 10) {
138-
std::cout << "failed at index " << i << ", " << test << " != " << gold
139-
<< "(gold)\n";
140-
}
136+
if ((test != gold) && (++err_cnt < 10)) {
137+
std::cout << "failed at index " << i << ", " << test << " != " << gold
138+
<< "(gold)\n";
141139
}
142140
}
143141
if (err_cnt > 0) {

0 commit comments

Comments
 (0)