llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL] Fix 2D slicepitch info

Open hdelan opened this issue 7 months ago • 4 comments

Make slicePitch equal to image size and numSlices 1 for a 2D image.

This was incorrect but wasn't failing as many backends ignore Pitch[1] for a 2D image.

hdelan avatar Jun 12 '25 15:06 hdelan

Can we have a test for this?

maarquitos14 avatar Jun 12 '25 16:06 maarquitos14

I could potentially make a unittest that checks whether a valid slice pitch is passed to the backend. The slice pitch is not exposed to the user for 2D images so the test would need to look at a backend SYCL_UR_TRACE.

hdelan avatar Jun 12 '25 20:06 hdelan

I could potentially make a unittest that checks whether a valid slice pitch is passed to the backend. The slice pitch is not exposed to the user for 2D images so the test would need to look at a backend SYCL_UR_TRACE.

unittest works for me! Thanks!

maarquitos14 avatar Jun 13 '25 10:06 maarquitos14

I've added a test in the E2E tests. There weren't any unittests using SYCL_UR_TRACE as this test does, and only a handful of tests in test so I though test-e2e was the most natural place for these.

hdelan avatar Jun 17 '25 16:06 hdelan

@intel/llvm-gatekeepers the failure is unrelated. Can we merge this please?

hdelan avatar Jun 25 '25 14:06 hdelan

@hdelan The failure is related, you need to add UNSUPPORTED-TRACKER or UNSUPPORTED-INTENDED to sycl/test-e2e/Basic/image/image_trace.cpp, grep the source for examples of exactly what to do.

sarnex avatar Jun 25 '25 14:06 sarnex

@hdelan The failure is related, you need to add UNSUPPORTED-INFO or UNSUPPORTED-INTENDED to sycl/test-e2e/Basic/image/image_trace.cpp, grep the source for examples of exactly what to do.

And this is the reason why simply saying "failure is unrelated" without even copying the failing test name into the comment is wrong.

aelovikov-intel avatar Jun 25 '25 14:06 aelovikov-intel

And this is the reason why simply saying "failure is unrelated" without even copying the failing test name into the comment is wrong.

I do it too sometimes :(, I'll try to be better both myself and checking for it before merging :)

sarnex avatar Jun 25 '25 14:06 sarnex

@hdelan Please don't do 9 commits after approval without asking for it again. I'm happy to review as many times as needed.

maarquitos14 avatar Jun 25 '25 18:06 maarquitos14

@hdelan Please don't do 9 commits after approval without asking for it again. I'm happy to review as many times as needed.

Apologies @maarquitos14 .

hdelan avatar Jul 01 '25 10:07 hdelan

Tests passing. Ping @aelovikov-intel

hdelan avatar Jul 04 '25 14:07 hdelan