Skip to content

Conversation

@fineg74
Copy link
Contributor

@fineg74 fineg74 commented Oct 17, 2024

No description provided.

@fineg74 fineg74 requested a review from a team as a code owner October 17, 2024 00:32
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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this example it looks like M is int32. Is this one crashing too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

M is declared as an array of MZxMZ which is 4 channels with 8 bit for each channel. This particular test was crashing

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});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question as above, A B and C seem to be ints here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was not crashing but it failed. A,B,C are declared as int[Size] which is 4 channels of 8 bits each of size Sizex1
Here I am not sure what exact issue was as Size/4 of 4 int32 channels is the same as Size of 4 int8 channels, the suspicion is that we are reading it using media_block_load with uint8 type and this is somehow confuses the driver

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, thanks

Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok if they pass now it's fine with me. thanks for investigating these

@sarnex sarnex merged commit efe48f2 into intel:sycl Oct 17, 2024
13 checks passed
@fineg74 fineg74 deleted the imageTest branch October 17, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants