Skip to content

Commit efe48f2

Browse files
authored
[SYCL][ESIMD] Fix image test failures with new driver (#15734)
1 parent 37c6766 commit efe48f2

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

sycl/test-e2e/ESIMD/matrix_transpose2.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,8 @@ bool runTest(unsigned MZ, unsigned block_size, unsigned num_iters,
296296
for (int i = 0; i <= num_iters; ++i) {
297297
// make sure that image object has short live-range
298298
// than M
299-
sycl::image<2> imgM((unsigned int *)M, image_channel_order::rgba,
300-
image_channel_type::unsigned_int32,
301-
range<2>{MZ / 4, MZ});
299+
sycl::image<2> imgM((unsigned char *)M, image_channel_order::rgba,
300+
image_channel_type::unsigned_int8, range<2>{MZ, MZ});
302301

303302
double etime = 0;
304303
if (block_size == 16 && MZ >= 16) {

sycl/test-e2e/ESIMD/vadd_2d.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ int main(void) {
3030

3131
try {
3232
sycl::image<2> imgA(A, image_channel_order::rgba,
33-
image_channel_type::unsigned_int32,
34-
range<2>{Size / 4, 1});
33+
image_channel_type::unsigned_int8, range<2>{Size, 1});
3534
sycl::image<2> imgB(B, image_channel_order::rgba,
36-
image_channel_type::unsigned_int32,
37-
range<2>{Size / 4, 1});
35+
image_channel_type::unsigned_int8, range<2>{Size, 1});
3836
sycl::image<2> imgC(C, image_channel_order::rgba,
39-
image_channel_type::unsigned_int32,
40-
range<2>{Size / 4, 1});
37+
image_channel_type::unsigned_int8, range<2>{Size, 1});
4138

4239
// We need that many workitems
4340
range<1> GlobalRange{(Size / VL)};

0 commit comments

Comments
 (0)