Host side helper to provide an abstraction over sycl::accessor to access engines’ which are hold by engine_descriptor in kernels.
template<Engine>
class engine_accessor {
public:
Engine load(size_t id) const
void store(Engine engine, size_t id) const;
};
mkl_rng_sycl_device.hpp
engine_accessor provides an abstraction over sycl::accessor to access engines which are hold by engine_descriptor in kernels by load() and store() functions.
Type | Description |
---|---|
Engine | Specify an engine which state is hold by engine_accessor. |