Skip to content

Commit 2d0bda8

Browse files
author
Yihan Wang
authored
[SYCLomatic] Removed deprecated API usage by replacing sycl::ext::oneapi::this_work_item::get_sub_group by sycl::ext::oneapi::experimental::this_sub_group (#2170)
Signed-off-by: Wang, Yihan <[email protected]>
1 parent 92ad751 commit 2d0bda8

File tree

1 file changed

+6
-4
lines changed
  • clang/runtime/dpct-rt/include/dpct

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,13 +2182,15 @@ class joint_matrix {
21822182
public:
21832183
joint_matrix() : matrix() {}
21842184
joint_matrix(joint_matrix &other) {
2185-
syclex::matrix::joint_matrix_copy(syclex::this_sub_group(), other.get(),
2186-
matrix);
2185+
syclex::matrix::joint_matrix_copy(
2186+
sycl::ext::oneapi::this_work_item::get_sub_group(), other.get(),
2187+
matrix);
21872188
}
21882189
joint_matrix &operator=(joint_matrix &other) {
21892190
if (this != &other) {
2190-
syclex::matrix::joint_matrix_copy(syclex::this_sub_group(), other.get(),
2191-
matrix);
2191+
syclex::matrix::joint_matrix_copy(
2192+
sycl::ext::oneapi::this_work_item::get_sub_group(), other.get(),
2193+
matrix);
21922194
}
21932195
return *this;
21942196
}

0 commit comments

Comments
 (0)