Skip to content

Commit 5c48115

Browse files
committed
Replace item.barrier() with sycl::group_barrier()
1 parent 8e10d4f commit 5c48115

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Code_Exercises/Exercise_18_Local_Memory_Tiling/solution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ TEST_CASE("image_convolution_tiled", "local_memory_tiling_solution") {
111111
}
112112
}
113113

114-
item.barrier();
114+
sycl::group_barrier(item.get_group());
115115

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

Code_Exercises/Exercise_19_Work_Group_Sizes/solution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ TEST_CASE("image_convolution_tiled", "local_memory_tiling_solution") {
111111
}
112112
}
113113

114-
item.barrier();
114+
sycl::group_barrier(item.get_group());
115115

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

0 commit comments

Comments
 (0)