.. _oneapi-mkl-rng-device-engine_accessor: oneapi::mkl::rng::device::engine_accessor ========================================= Host side helper to provide an abstraction over ``sycl::accessor`` to access engines’ which are held by ``engine_descriptor`` in kernels. .. contents:: :local: :depth: 1 Description *********** ``engine_accessor`` provides an abstraction over ``sycl::accessor`` to access engines which are held by ``engine_descriptor`` in kernels by the ``load()`` and ``store()`` functions. API *** Syntax ------ .. code-block:: cpp template class engine_descriptor { public: Engine load(size_t id) const void store(Engine engine, size_t id) const } Include Files ------------- - ``oneapi/mkl/rng/device.hpp`` Template Parameters ------------------- .. list-table:: :header-rows: 1 * - Type - Description * - ``Engine`` - Specify an engine which state is hold by ``engine_accessor``.