|
| | engine ()=default |
| | Constructs an empty engine. More...
|
| |
| | engine (kind kind, size_t index) |
| | Constructs an engine. More...
|
| |
| | engine (kind kind, cl_device_id device, cl_context context) |
| | Constructs an engine from OpenCL device and context objects. More...
|
| |
| 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 handle< dnnl_primitive_desc_t > &pd) |
| | Constructs an engine based on a primitive from the primitive descriptor pd by querying its engine. More...
|
| |
| kind | get_kind () const |
| | Returns the kind of the engine. More...
|
| |
| cl_context | get_ocl_context () const |
| | Returns the OpenCL context associated with the engine. More...
|
| |
| cl_device_id | get_ocl_device () const |
| | Returns the OpenCL device associated with the engine. More...
|
| |
|
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.
|
| |
| | handle ()=default |
| | Constructs an empty handle object. More...
|
| |
|
| handle (const handle< T, traits > &)=default |
| | Copy constructor.
|
| |
|
| handle (handle< T, traits > &&)=default |
| | Move constructor.
|
| |
| | handle (T t, bool weak=false) |
| | Constructs a handle wrapper object from a C API handle. More...
|
| |
Public Member Functions inherited from dnnl::handle< dnnl_engine_t > |
| bool | operator== (const handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > &other) const |
| | Equality operator. More...
|
| |
| bool | operator!= (const handle &other) const |
| | Inequality operator. More...
|
| |
| | handle ()=default |
| | Constructs an empty handle object. More...
|
| |
|
| handle (const handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > &)=default |
| | Copy constructor.
|
| |
|
| handle (handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > &&)=default |
| | Move constructor.
|
| |
| | handle (dnnl_engine_t t, bool weak=false) |
| | Constructs a handle wrapper object from a C API handle. More...
|
| |
|
handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > & | operator= (const handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > &)=default |
| | Assignment operator.
|
| |
|
handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > & | operator= (handle< dnnl_engine_t, handle_traits< dnnl_engine_t > > &&)=default |
| | Move assignment operator.
|
| |
| void | reset (dnnl_engine_t t, bool weak=false) |
| | Resets the handle wrapper objects to wrap a new C API handle. More...
|
| |
| dnnl_engine_t | get (bool allow_empty=false) const |
| | Returns the underlying C API handle. More...
|
| |
| | operator dnnl_engine_t () const |
| | Converts a handle to the underlying C API handle type. More...
|
| |
| | operator bool () const |
| | Checks whether the object is empty. More...
|
| |