Skip to content

Commit 16f8991

Browse files
committed
[SYCL] Correction to accessor range indexing.
Signed-off-by: rdeodhar <[email protected]>
1 parent d32a444 commit 16f8991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/accessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ class image_accessor
592592
template <int Dims = Dimensions, typename = detail::enable_if_t<Dims == 3>>
593593
range<3> get_range() const {
594594
cl_int3 Range = getRangeInternal();
595-
return range<3>(Range[0], Range[1], Range[3]);
595+
return range<3>(Range[0], Range[1], Range[2]);
596596
}
597597

598598
#else

0 commit comments

Comments
 (0)