Skip to content

Commit

Permalink
[SYCL][ESIMD] Fix image test failures with new driver (#15734)
Browse files Browse the repository at this point in the history
  • Loading branch information
fineg74 authored Oct 17, 2024
1 parent 37c6766 commit efe48f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions sycl/test-e2e/ESIMD/matrix_transpose2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ bool runTest(unsigned MZ, unsigned block_size, unsigned num_iters,
for (int i = 0; i <= num_iters; ++i) {
// make sure that image object has short live-range
// than M
sycl::image<2> imgM((unsigned int *)M, image_channel_order::rgba,
image_channel_type::unsigned_int32,
range<2>{MZ / 4, MZ});
sycl::image<2> imgM((unsigned char *)M, image_channel_order::rgba,
image_channel_type::unsigned_int8, range<2>{MZ, MZ});

double etime = 0;
if (block_size == 16 && MZ >= 16) {
Expand Down
9 changes: 3 additions & 6 deletions sycl/test-e2e/ESIMD/vadd_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@ int main(void) {

try {
sycl::image<2> imgA(A, image_channel_order::rgba,
image_channel_type::unsigned_int32,
range<2>{Size / 4, 1});
image_channel_type::unsigned_int8, range<2>{Size, 1});
sycl::image<2> imgB(B, image_channel_order::rgba,
image_channel_type::unsigned_int32,
range<2>{Size / 4, 1});
image_channel_type::unsigned_int8, range<2>{Size, 1});
sycl::image<2> imgC(C, image_channel_order::rgba,
image_channel_type::unsigned_int32,
range<2>{Size / 4, 1});
image_channel_type::unsigned_int8, range<2>{Size, 1});

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

0 comments on commit efe48f2

Please sign in to comment.