Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 195d427

Browse files
authored
[SYCL][XPTI] Align on 256 bytes (#698)
1 parent 7b05546 commit 195d427

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SYCL/XPTI/buffer/sub_buffer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ int main() {
1616
sycl::queue Queue{};
1717

1818
{
19-
sycl::range<1> NumOfWorkItems{64};
19+
sycl::range<1> NumOfWorkItems{128};
2020
// CHECK:{{[0-9]+}}|Create buffer|[[#USERID1:]]|{{.*}}sub_buffer.cpp:21:26|{{.*}}sub_buffer.cpp:21:26
2121
sycl::buffer<int, 1> Buffer1(NumOfWorkItems);
2222
// CHECK:{{[0-9]+}}|Create buffer|[[#USERID1:]]|{{.*}}sub_buffer.cpp:23:26|{{.*}}sub_buffer.cpp:23:26
23-
sycl::buffer<int, 1> SubBuffer{Buffer1, sycl::range<1>{16},
23+
sycl::buffer<int, 1> SubBuffer{Buffer1, sycl::range<1>{32},
2424
sycl::range<1>{32}};
2525

2626
// CHECK:{{[0-9]+}}|Associate buffer|[[#USERID1]]|[[#BEID1:]]
@@ -37,10 +37,10 @@ int main() {
3737

3838
auto Accessor1 = Buffer1.get_access<sycl::access::mode::read>();
3939
// Check the results.
40-
for (size_t I = 16; I < 48; ++I) {
41-
if (Accessor1[I] != I - 16) {
40+
for (size_t I = 32; I < 64; ++I) {
41+
if (Accessor1[I] != I - 32) {
4242
std::cout << "The result is incorrect for element: " << I
43-
<< " , expected: " << I - 16 << " , got: " << Accessor1[I]
43+
<< " , expected: " << I - 32 << " , got: " << Accessor1[I]
4444
<< std::endl;
4545
MismatchFound = true;
4646
}

0 commit comments

Comments
 (0)