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.
Syntax
-
template<Engine>
-
class engine_accessor {
-
public:
-
Engine
load
(size_t id) const¶
-
void
store
(Engine engine, size_t id) const¶
-
}
Include Files
oneapi/mkl/rng/device.hpp
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.
Template Parameters
Type |
Description |
---|---|
|
Specify an engine which state is hold by engine_accessor. |