|
|
typedef struct dnnl_stream * | dnnl_stream_t |
| | An execution stream handle.
|
|
typedef const struct dnnl_stream * | const_dnnl_stream_t |
| | A constant execution stream handle.
|
|
typedef struct dnnl_stream_attr * | dnnl_stream_attr_t |
| | An execution stream attributes handle.
|
|
typedef const struct dnnl_stream_attr * | const_dnnl_stream_attr_t |
| | A constant execution stream attributes handle.
|
An encapsulation of execution context tied to a particular engine.
- See also
- Basic Concepts
◆ dnnl_stream_flags_t
Stream flags.
| Enumerator |
|---|
| dnnl_stream_default_order | Default order execution.
Either in-order or out-of-order depending on the runtime.
|
| dnnl_stream_in_order | In-order execution.
|
| dnnl_stream_out_of_order | Out-of-order execution.
|
| dnnl_stream_default_flags | Default stream configuration.
|
◆ dnnl_stream_attr_create()
Creates execution stream attributes for a stream that runs on an engine of a particular kind.
- Parameters
-
| attr | Output execution stream attributes. |
| kind | Target engine kind. |
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_stream_attr_destroy()
Destroys execution stream attributes.
- Parameters
-
| attr | Execution stream attributes to destroy. |
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_stream_create()
◆ dnnl_stream_create_v2()
Creates an execution stream.
- Parameters
-
| stream | Output execution stream. |
| engine | Engine to create the execution stream on. |
| flags | Stream behavior flags ( |
- See also
- dnnl_stream_flags_t).
- Parameters
-
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_stream_create_ocl()
Creates an execution stream for a given engine associated with an OpenCL command queue.
- Parameters
-
| stream | Output execution stream. |
| engine | Engine to create the execution stream on. |
| queue | OpenCL command queue to use. |
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_stream_get_ocl_command_queue()
Returns the OpenCL command queue associated with an execution stream.
- Parameters
-
| stream | Execution stream to query. |
| queue | Output OpenCL command queue. |
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_stream_wait()
◆ dnnl_stream_destroy()