Skip to content

Commit

Permalink
[SYCL] Update tests to use local_accessor (intel#1063)
Browse files Browse the repository at this point in the history
This PR updates tests that use `target::local` to local_accessor. In all cases the change should not functionally change the test. The goal is to move from the deprecated `target::local` accessor to `local_accessor`.

Depends on: intel#6341
  • Loading branch information
AidanBeltonS authored Sep 2, 2022
1 parent a1881c3 commit de7d8fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SYCL/XPTI/kernel/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ int main() {
.submit([&](sycl::handler &cgh) {
// CHECK: {{[0-9]+}}|Construct accessor|[[BUFFERID]]|[[ACCID1:.+]]|2014|1026|{{.*}}.cpp:[[# @LINE + 1]]:19
auto A1 = Buf.get_access<mode::read_write>(cgh);
// CHECK: {{[0-9]+}}|Construct accessor|0x0|[[ACCID2:.*]]|2016|1026|{{.*}}.cpp:[[# @LINE + 1]]:65
sycl::accessor<int, 1, mode::read_write, target::local> A2(Range, cgh);
// CHECK: {{[0-9]+}}|Construct accessor|0x0|[[ACCID2:.*]]|2016|1026|{{.*}}.cpp:[[# @LINE + 1]]:38
sycl::local_accessor<int, 1> A2(Range, cgh);
// CHECK-OPT:Node create|{{.*}}FillBuffer{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{5, 1, 1}, {0, 0, 0}, {0, 0, 0}, 6
// CHECK-NOOPT:Node create|{{.*}}FillBuffer{{.*}}|{{.*}}.cpp:[[# @LINE - 7 ]]:3|{5, 1, 1}, {0, 0, 0}, {0, 0, 0}, 12
cgh.parallel_for<class FillBuffer>(
Expand Down

0 comments on commit de7d8fd

Please sign in to comment.