Skip to content

Commit 53e77ce

Browse files
authored
[SYCL][ESIMD][E2E] Fix sporadic esimd emulator failure (#9142)
With NumEl 7, 8 and 10, a write of offset 6 stride 2 NumSelectedEl=NumEl/3 leads to an out of bound write, so just lower the offset so we have space. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent 7a1fa6c commit 53e77ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/ESIMD/regression/copyto_char_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ template <int NumElems, bool IsAcc, int ResultOffset = 0> int test_to_copy() {
3131
sycl::queue queue;
3232
constexpr int NumSelectedElems = NumElems / 3;
3333
constexpr int Stride = 2;
34-
constexpr int Offset = 6;
34+
constexpr int Offset = 4;
3535

3636
shared_allocator<DataT> allocator(queue);
3737
shared_vector<DataT> result(NumElems + ResultOffset, allocator);

0 commit comments

Comments
 (0)