Skip to content

Commit 9533871

Browse files
[SYCL] Deprecate group::get_global_range() (#7032)
This patch deprecates group::get_global_range() as it was removed from SYCL 2020
1 parent 3f17ada commit 9533871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/sycl/group.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ template <int Dimensions = 1> class __SYCL_TYPE(group) group {
115115

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

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

120122
size_t get_global_range(int dimension) const {

0 commit comments

Comments
 (0)