Skip to content

Commit fe2a343

Browse files
committed
Use new function names non-uniform group and tangle APIs
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
1 parent 83399b4 commit fe2a343

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

  • clang/runtime/dpct-rt/include/dpct

clang/runtime/dpct-rt/include/dpct/util.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -602,12 +602,11 @@ T shift_sub_group_left(sycl::sub_group sg, T input, int delta, int last_item,
602602
return result;
603603
#else
604604
if ((1U << sg.get_local_linear_id()) & member_mask) {
605-
auto inner = sycl::ext::oneapi::experimental::get_tangle_group(sg);
605+
auto inner = sycl::ext::oneapi::experimental::entangle(sg);
606606
sycl::group_barrier(inner);
607607
}
608608
auto partition =
609-
sycl::ext::oneapi::experimental::get_fixed_size_group<LogicSubGroupSize>(
610-
sg);
609+
sycl::ext::oneapi::experimental::chunked_partition<LogicSubGroupSize>(sg);
611610
int id = partition.get_local_linear_id();
612611
T result = sycl::shift_group_left(partition, input, delta);
613612
if ((id + delta) > last_item)
@@ -640,12 +639,11 @@ T shift_sub_group_right(sycl::sub_group sg, T input, int delta, int first_item,
640639
return result;
641640
#else
642641
if ((1U << sg.get_local_linear_id()) & member_mask) {
643-
auto inner = sycl::ext::oneapi::experimental::get_tangle_group(sg);
642+
auto inner = sycl::ext::oneapi::experimental::entangle(sg);
644643
sycl::group_barrier(inner);
645644
}
646645
auto partition =
647-
sycl::ext::oneapi::experimental::get_fixed_size_group<LogicSubGroupSize>(
648-
sg);
646+
sycl::ext::oneapi::experimental::chunked_partition<LogicSubGroupSize>(sg);
649647
int id = sg.get_local_linear_id();
650648
T result = sycl::shift_group_right(partition, input, delta);
651649
if ((id - first_item) < delta)

0 commit comments

Comments
 (0)