|
| engine (kind akind, size_t index) |
| Constructs an engine. More...
|
|
| engine (kind akind, cl_device_id device, cl_context context) |
| Constructs an engine of particular akind associated with the given OpenCL device and context objects.
|
|
DNNL_API | engine (kind akind, const cl::sycl::device &dev, const cl::sycl::context &ctx) |
| Constructs an engine from SYCL device and context objects. More...
|
|
| engine (const dnnl_engine_t &aengine) |
| Constructs an engine from other engine aengine .
|
|
| engine (const handle< dnnl_primitive_desc_t > &pd) |
| Constructs an engine from the primitive descriptor pd by querying its engine.
|
|
kind | get_kind () const |
| Returns the kind of the engine.
|
|
cl_context | get_ocl_context () const |
| Returns the OpenCL context associated with the engine.
|
|
cl_device_id | get_ocl_device () const |
| Returns the OpenCL device associated with the engine.
|
|
cl::sycl::context DNNL_API | get_sycl_context () const |
| Returns the underlying SYCL context object.
|
|
cl::sycl::device DNNL_API | get_sycl_device () const |
| Returns the underlying SYCL device object.
|
|
Public Member Functions inherited from dnnl::handle< dnnl_engine_t > |
| handle ()=default |
| Empty constructor. More...
|
|
| handle (dnnl_engine_t t, bool weak=false) |
| Constructs a C handle wrapper from a C handle. More...
|
|
void | reset (dnnl_engine_t t, bool weak=false) |
| Resets the value of a C handle. More...
|
|
dnnl_engine_t | get (bool allow_emtpy=false) const |
| Returns the value of the underlying C handle.
|
|