We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f372b39 commit dbcd0beCopy full SHA for dbcd0be
sycl/include/sycl/accessor.hpp
@@ -2527,8 +2527,8 @@ class __SYCL_SPECIAL_CLASS local_accessor_base :
2527
// Method which calculates linear offset for the ID using Range and Offset.
2528
template <int Dims = AdjustedDim> size_t getLinearIndex(id<Dims> Id) const {
2529
size_t Result = 0;
2530
- detail::dim_loop<Dims>(
2531
- [&, this](size_t I) { Result = Result * getSize()[I] + Id[I]; });
+ for (int I = 0; I < Dims; ++I)
+ Result = Result * getSize()[I] + Id[I];
2532
return Result;
2533
}
2534
0 commit comments