Skip to content

Commit 2e6e733

Browse files
v-klochkovbb-sycl
authored andcommitted
[ESIMD] Add tests for new esimd::xmx:dpas API (intel#1281)
* [ESIMD] Add tests for new esimd::xmx:dpas API Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent fc83910 commit 2e6e733

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

SYCL/ESIMD/dpas/dpas_common.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,17 @@ bool test(queue &Q, bool Print) {
317317
auto BPacked = aligned_alloc_shared<BNaturalType>(128, BPackedSize, Q);
318318
auto Res = aligned_alloc_shared<ResNaturalType>(128, M * N, Q);
319319
// Init APacked;
320+
<<<<<<< HEAD
320321
int Value = 1;
321322
for (int II = 0; II < M; II++) {
322323
for (int JJ = 0; JJ < K; JJ++) {
323324
//Value++;
325+
=======
326+
int Value = 0;
327+
for (int II = 0; II < M; II++) {
328+
for (int JJ = 0; JJ < K; JJ++) {
329+
Value++;
330+
>>>>>>> 78be3ae16 ([ESIMD] Add tests for new esimd::xmx:dpas API (#1281))
324331
writeToHorizontallyPackedMatrix<M, K, APrec>(
325332
APacked, II, JJ, static_cast<ANaturalType>(Value));
326333
}
@@ -331,8 +338,12 @@ bool test(queue &Q, bool Print) {
331338
// Init BPacked;
332339
for (int II = 0; II < K; II++) {
333340
for (int JJ = 0; JJ < N; JJ++) {
341+
<<<<<<< HEAD
334342
//int Value = (II + JJ % 4) == 0 ? 1 : (2 + II + JJ) % 3;
335343
int Value = 2.5;
344+
=======
345+
int Value = (II + JJ % 4) == 0 ? 1 : (2 + II + JJ) % 3;
346+
>>>>>>> 78be3ae16 ([ESIMD] Add tests for new esimd::xmx:dpas API (#1281))
336347
writeToVerticallyPackedMatrix<K, N, BPrec>(
337348
BPacked, II, JJ, static_cast<BNaturalType>(Value));
338349
assert(Value == (int)(static_cast<BNaturalType>(Value)) && "ERROR");

SYCL/ESIMD/dpas/dpas_int.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,22 @@ int main(int argc, const char *argv[]) {
2525
Passed &= tests<8, 4, u2, u2>(Q, Print);
2626
// TODO: enable this case when the problem with simd constructor
2727
// is resolved.
28+
<<<<<<< HEAD
2829
Passed &= tests<8, 3, u2, u2>(Q, Print);
30+
=======
31+
// Passed &= tests<8, 3, u2, u2>(Q, Print);
32+
>>>>>>> 78be3ae16 ([ESIMD] Add tests for new esimd::xmx:dpas API (#1281))
2933
Passed &= tests<8, 1, u2, u2>(Q, Print);
3034

3135
// Test signed 2-bit integers.
3236
Passed &= tests<8, 8, s2, s2>(Q, Print);
3337
// TODO: enable this case when the problem with simd constructor
3438
// is resolved.
39+
<<<<<<< HEAD
3540
Passed &= tests<8, 5, s2, s2>(Q, Print);
41+
=======
42+
// Passed &= tests<8, 5, s2, s2>(Q, Print);
43+
>>>>>>> 78be3ae16 ([ESIMD] Add tests for new esimd::xmx:dpas API (#1281))
3644
Passed &= tests<8, 2, s2, s2>(Q, Print);
3745
Passed &= tests<8, 1, s2, s2>(Q, Print);
3846

0 commit comments

Comments
 (0)