Skip to content

[SYCL][E2E] Add SYCL E2E test to cover marray operations on device#22543

Open
uditagarwal97 wants to merge 1 commit into
syclfrom
private/udit/marray_test
Open

[SYCL][E2E] Add SYCL E2E test to cover marray operations on device#22543
uditagarwal97 wants to merge 1 commit into
syclfrom
private/udit/marray_test

Conversation

@uditagarwal97

Copy link
Copy Markdown
Contributor

To improve marray's code coverage.

@uditagarwal97 uditagarwal97 self-assigned this Jul 3, 2026
@uditagarwal97 uditagarwal97 requested a review from a team as a code owner July 3, 2026 18:46
@uditagarwal97 uditagarwal97 changed the title [SYCL][E2E] Add SYCL E2E test to cover marray operations [SYCL][E2E] Add SYCL E2E test to cover marray operations on device Jul 3, 2026
if constexpr (std::is_same_v<T, bool>)
Ret[I] = (I % 2 == 0);
else
Ret[I] = T(I + 1); // 1,2,3,...

@KseniyaTikhomirova KseniyaTikhomirova Jul 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are this test and comments AI-generated? some comments are pretty useless here, would be nice to remove such comments. Also if it is assisted with AI - you'd need to mention it in PR description

auto B = makeB<T, N>();
T Scalar = T(2);
auto ExpectedRhs = A;
Op(ExpectedRhs, B);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: tests do same actions on host and on device, then check equality. Is there a good way to unify these actions between host & device then? Otherwise any update of test scenario will require 2 places to be updated.

checkAssign<int, 4>(Q, [](auto &X, auto Y) { X += Y; });
checkAssign<int, 4>(Q, [](auto &X, auto Y) { X &= Y; });

// half: storeVecResult convert branch (half -> _Float16), vector path only.

@KseniyaTikhomirova KseniyaTikhomirova Jul 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

kind of misleading comments, this test doesn't contain storeVecResult. I assume it is SYCL implementation-detail method. do we really need to link E2E test comments to implementation-detailed stuff?

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