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

Commit 5646a3d

Browse files
authored
[ESIMD] Add new test cases to simd::copy_from/to test (#615)
This patch adds new test cases to simd::copy_from/to test which exersise this API on simd objects exceeding eight owords in size. Signed-off-by: Sergey Dmitriev <[email protected]>
1 parent 7debe14 commit 5646a3d

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

SYCL/ESIMD/api/simd_copy_to_from.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,14 @@ template <typename T> bool testUSM(const std::string &Type, queue &Q) {
156156
Pass &= testUSM<T, 15>(Type, Q);
157157
Pass &= testUSM<T, 16>(Type, Q);
158158

159-
if constexpr (sizeof(T) < 8) {
160-
Pass &= testUSM<T, 24>(Type, Q);
161-
Pass &= testUSM<T, 25>(Type, Q);
159+
Pass &= testUSM<T, 24>(Type, Q);
160+
Pass &= testUSM<T, 25>(Type, Q);
162161

163-
Pass &= testUSM<T, 31>(Type, Q);
164-
Pass &= testUSM<T, 32>(Type, Q);
165-
}
162+
Pass &= testUSM<T, 31>(Type, Q);
163+
Pass &= testUSM<T, 32>(Type, Q);
164+
165+
Pass &= testUSM<T, 91>(Type, Q);
166+
Pass &= testUSM<T, 92>(Type, Q);
166167

167168
return Pass;
168169
}
@@ -209,13 +210,14 @@ template <typename T> bool testAcc(const std::string &Type, queue &Q) {
209210
Pass &= testAcc<T, 15>(Type, Q);
210211
Pass &= testAcc<T, 16>(Type, Q);
211212

212-
if constexpr (sizeof(T) < 8) {
213-
Pass &= testAcc<T, 24>(Type, Q);
214-
Pass &= testAcc<T, 25>(Type, Q);
213+
Pass &= testAcc<T, 24>(Type, Q);
214+
Pass &= testAcc<T, 25>(Type, Q);
215215

216-
Pass &= testAcc<T, 31>(Type, Q);
217-
Pass &= testAcc<T, 32>(Type, Q);
218-
}
216+
Pass &= testAcc<T, 31>(Type, Q);
217+
Pass &= testAcc<T, 32>(Type, Q);
218+
219+
Pass &= testAcc<T, 91>(Type, Q);
220+
Pass &= testAcc<T, 92>(Type, Q);
219221

220222
return Pass;
221223
}

0 commit comments

Comments
 (0)