oneapi-src / SYCLomatic

Other
222 stars 91 forks source link

[SYCLomatic] Use `sycl::ext::oneapi::this_work_item::get_sub_group` instead of `sycl::ext::oneapi::experimental::this_sub_group` #2170

Closed yihanwg closed 1 week ago

yihanwg commented 1 month ago

sycl::ext::oneapi::experimental::this_sub_group was deprecated. This PR clean the build warning in help function:

clang/runtime/dpct-rt/include/dpct/math.hpp:2185:47: warning: 'this_sub_group' is deprecated: use sycl::ext::oneapi::this_work_item::get_sub_group() instead [-Wdeprecated-declarations]
2185 |     syclex::matrix::joint_matrix_copy(syclex::this_sub_group(), other.get(),
     |                                               ^