This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ int main() {
16
16
sycl::queue Queue{};
17
17
18
18
{
19
- sycl::range<1 > NumOfWorkItems{64 };
19
+ sycl::range<1 > NumOfWorkItems{128 };
20
20
// CHECK:{{[0-9]+}}|Create buffer|[[#USERID1:]]|{{.*}}sub_buffer.cpp:21:26|{{.*}}sub_buffer.cpp:21:26
21
21
sycl::buffer<int , 1 > Buffer1 (NumOfWorkItems);
22
22
// 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 },
24
24
sycl::range<1 >{32 }};
25
25
26
26
// CHECK:{{[0-9]+}}|Associate buffer|[[#USERID1]]|[[#BEID1:]]
@@ -37,10 +37,10 @@ int main() {
37
37
38
38
auto Accessor1 = Buffer1.get_access <sycl::access::mode::read>();
39
39
// 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 ) {
42
42
std::cout << " The result is incorrect for element: " << I
43
- << " , expected: " << I - 16 << " , got: " << Accessor1[I]
43
+ << " , expected: " << I - 32 << " , got: " << Accessor1[I]
44
44
<< std::endl;
45
45
MismatchFound = true ;
46
46
}
You can’t perform that action at this time.
0 commit comments