Skip to content

Commit

Permalink
[SYCL] Deprecate group::get_global_range() (#7032)
Browse files Browse the repository at this point in the history
This patch deprecates group::get_global_range() as it was removed from
SYCL 2020
  • Loading branch information
dm-vodopyanov authored Oct 18, 2022
1 parent 3f17ada commit 9533871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sycl/include/sycl/group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ template <int Dimensions = 1> class __SYCL_TYPE(group) group {

size_t get_group_id(int dimension) const { return index[dimension]; }

__SYCL2020_DEPRECATED("calculate sycl::group::get_group_range() * "
"sycl::group::get_max_local_range() instead")
range<Dimensions> get_global_range() const { return globalRange; }

size_t get_global_range(int dimension) const {
Expand Down

0 comments on commit 9533871

Please sign in to comment.