Skip to content

[SYCL][test-e2e] Fix off-by-one in atomic_memory_order_seq_cst check loop#21535

Open
zhaomaosu wants to merge 2 commits intointel:syclfrom
zhaomaosu:e2e-fix-uum-atomic-seq-cst
Open

[SYCL][test-e2e] Fix off-by-one in atomic_memory_order_seq_cst check loop#21535
zhaomaosu wants to merge 2 commits intointel:syclfrom
zhaomaosu:e2e-fix-uum-atomic-seq-cst

Conversation

@zhaomaosu
Copy link
Contributor

The checked_buf is allocated with dimensions (N_items / 2 * N_iters + 1), and the inner initialization loop correctly iterates up to that bound. However, the outer loop used N_items / 2 * N_iters as its upper bound, leaving the last row of the checked buffer uninitialized. Fix the outer loop bound to match the buffer size and the inner loop bound.

…loop

The checked_buf is allocated with dimensions (N_items / 2 * N_iters + 1),
and the inner initialization loop correctly iterates up to that bound.
However, the outer loop used N_items / 2 * N_iters as its upper bound,
leaving the last row of the checked buffer uninitialized. Fix the outer
loop bound to match the buffer size and the inner loop bound.
@zhaomaosu zhaomaosu requested a review from a team as a code owner March 17, 2026 07:20
@zhaomaosu zhaomaosu requested a review from slawekptak March 17, 2026 07:20
@zhaomaosu
Copy link
Contributor Author

We're going to update this test because device memory sanitizer reports UUM issue when running this test.

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.

1 participant