numba_dpex.kernel_api.local_accessor

Implements a Python analogue to SYCL’s local_accessor class. The class is intended to be used in pure Python code when prototyping a kernel function and to be passed to an actual kernel function for local memory allocation.

Overview

Classes

LocalAccessor

Analogue to the sycl::local_accessor class.

Classes

class LocalAccessor(shape, dtype)

Analogue to the sycl::local_accessor class.

The class acts as a proxy to allocating device local memory and accessing that memory from within a numba_dpex.kernel() decorated function.