@@ -1084,7 +1084,7 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
1084
1084
template <int Dims = Dimensions> size_t getLinearIndex (id<Dims> Id) const {
1085
1085
1086
1086
size_t Result = 0 ;
1087
- detail::dim_loop <Dims>([&, this ](size_t I) {
1087
+ detail::loop <Dims>([&, this ](size_t I) {
1088
1088
Result = Result * getMemoryRange ()[I] + Id[I];
1089
1089
// We've already adjusted for the accessor's offset in the __init, so
1090
1090
// don't include it here in case of device.
@@ -1147,7 +1147,7 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
1147
1147
void __init (ConcreteASPtrType Ptr, range<AdjustedDim> AccessRange,
1148
1148
range<AdjustedDim> MemRange, id<AdjustedDim> Offset) {
1149
1149
MData = Ptr;
1150
- detail::dim_loop <AdjustedDim>([&, this ](size_t I) {
1150
+ detail::loop <AdjustedDim>([&, this ](size_t I) {
1151
1151
if constexpr (!(PropertyListT::template has_property<
1152
1152
sycl::ext::oneapi::property::no_offset>())) {
1153
1153
getOffset ()[I] = Offset[I];
@@ -2252,7 +2252,7 @@ class __SYCL_EBO __SYCL_SPECIAL_CLASS __SYCL_TYPE(accessor) accessor :
2252
2252
#ifdef __SYCL_DEVICE_ONLY__
2253
2253
size_t getTotalOffset () const noexcept {
2254
2254
size_t TotalOffset = 0 ;
2255
- detail::dim_loop <Dimensions>([&, this ](size_t I) {
2255
+ detail::loop <Dimensions>([&, this ](size_t I) {
2256
2256
TotalOffset = TotalOffset * impl.MemRange [I];
2257
2257
if constexpr (!(PropertyListT::template has_property<
2258
2258
sycl::ext::oneapi::property::no_offset>())) {
@@ -2515,7 +2515,7 @@ class __SYCL_SPECIAL_CLASS local_accessor_base :
2515
2515
void __init (ConcreteASPtrType Ptr, range<AdjustedDim> AccessRange,
2516
2516
range<AdjustedDim>, id<AdjustedDim>) {
2517
2517
MData = Ptr;
2518
- detail::dim_loop <AdjustedDim>(
2518
+ detail::loop <AdjustedDim>(
2519
2519
[&, this ](size_t I) { getSize ()[I] = AccessRange[I]; });
2520
2520
}
2521
2521
@@ -2570,7 +2570,7 @@ class __SYCL_SPECIAL_CLASS local_accessor_base :
2570
2570
// Method which calculates linear offset for the ID using Range and Offset.
2571
2571
template <int Dims = AdjustedDim> size_t getLinearIndex (id<Dims> Id) const {
2572
2572
size_t Result = 0 ;
2573
- detail::dim_loop <Dims>(
2573
+ detail::loop <Dims>(
2574
2574
[&, this ](size_t I) { Result = Result * getSize ()[I] + Id[I]; });
2575
2575
return Result;
2576
2576
}
0 commit comments