Skip to content

Commit

Permalink
Replace item.barrier() with sycl::group_barrier()
Browse files Browse the repository at this point in the history
  • Loading branch information
joeatodd committed May 10, 2022
1 parent 8e10d4f commit 5c48115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ TEST_CASE("image_convolution_tiled", "local_memory_tiling_solution") {
}
}

item.barrier();
sycl::group_barrier(item.get_group());

auto sum = sycl::float4{0.0f, 0.0f, 0.0f, 0.0f};

Expand Down
2 changes: 1 addition & 1 deletion Code_Exercises/Exercise_19_Work_Group_Sizes/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ TEST_CASE("image_convolution_tiled", "local_memory_tiling_solution") {
}
}

item.barrier();
sycl::group_barrier(item.get_group());

auto sum = sycl::float4{0.0f, 0.0f, 0.0f, 0.0f};

Expand Down

0 comments on commit 5c48115

Please sign in to comment.