HomePhabricator

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

Authored by Fznamznon on Mar 19 2019, 12:38 PM.

Description

[SYCL] Fix accessor to subset of buffer indexing (compiler 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>

Details

Event Timeline