An encapsulation of execution context tied to a particular engine. More...
Classes | |
struct | dnnl::stream |
An execution stream. More... | |
struct | dnnl_stream |
An opaque structure to describe an execution stream. More... | |
Typedefs | |
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. | |
Enumerations | |
enum | dnnl_stream_flags_t |
Stream flags. More... | |
Functions | |
dnnl_status_t DNNL_API | dnnl_stream_create (dnnl_stream_t *stream, dnnl_engine_t engine, unsigned flags) |
Creates an execution stream. More... | |
dnnl_status_t DNNL_API | dnnl_stream_get_engine (const_dnnl_stream_t stream, dnnl_engine_t *engine) |
Returns the engine of a stream object. More... | |
dnnl_status_t DNNL_API | dnnl_stream_wait (dnnl_stream_t stream) |
Waits for all primitives in the execution stream to finish computations. More... | |
dnnl_status_t DNNL_API | dnnl_stream_destroy (dnnl_stream_t stream) |
Destroys an execution stream. More... | |
An encapsulation of execution context tied to a particular engine.
enum dnnl_stream_flags_t |
dnnl_status_t DNNL_API dnnl_stream_create | ( | dnnl_stream_t * | stream, |
dnnl_engine_t | engine, | ||
unsigned | flags | ||
) |
Creates an execution stream.
stream | Output execution stream. |
engine | Engine to create the execution stream on. |
flags | Stream behavior flags ( |
dnnl_status_t DNNL_API dnnl_stream_get_engine | ( | const_dnnl_stream_t | stream, |
dnnl_engine_t * | engine | ||
) |
Returns the engine of a stream object.
stream | Stream object. |
engine | Output engine on which the stream is created. |
dnnl_status_t DNNL_API dnnl_stream_wait | ( | dnnl_stream_t | stream | ) |
Waits for all primitives in the execution stream to finish computations.
stream | Execution stream. |
dnnl_status_t DNNL_API dnnl_stream_destroy | ( | dnnl_stream_t | stream | ) |
Destroys an execution stream.
stream | Execution stream to destroy. |