HomePhabricator

[SYCL] Fix accessor to subset of buffer indexing (runtime part)

Authored by Fznamznon on Mar 20 2019, 5:07 AM.

Description

[SYCL] Fix accessor to subset of buffer indexing (runtime part)

To get correct offset in subscript operator we should use range of original
buffer. To keep accessor functionality like "get_range" and "get_count" spec
conformant we should use accessor's own range.
Introduced AccessRange and MemRange to accessor implemetation. This fields can
be initialized through __init method.

Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
Signed-off-by: Mariya Podchishchaeva <mariya.podchishchaeva@intel.com>

Event Timeline