Intel(R) Math Kernel Library for Deep Neural Networks (Intel(R) MKL-DNN)  1.0.0
Performance library for Deep Learning
Public Types | Public Member Functions | List of all members
mkldnn::stream Struct Reference

An execution stream. More...

#include <mkldnn.hpp>

Inheritance diagram for mkldnn::stream:
Inheritance graph
[legend]
Collaboration diagram for mkldnn::stream:
Collaboration graph
[legend]

Public Types

enum  flags : unsigned { flags::default_order = mkldnn_stream_default_order, flags::in_order = mkldnn_stream_default_order, flags::out_of_order = mkldnn_stream_out_of_order, flags::default_flags = mkldnn_stream_default_flags }
 Stream flags. More...
 

Public Member Functions

 stream (const engine &aengine, flags aflags=flags::default_flags)
 Constructs a stream.
 
streamwait ()
 Waits for all primitives in the stream to finish.
 
- Public Member Functions inherited from mkldnn::handle< mkldnn_stream_t >
 handle (mkldnn_stream_t t, bool weak=false)
 Constructs a C handle wrapper. More...
 
 handle ()
 Empty constructor. More...
 
void reset (mkldnn_stream_t t, bool weak=false)
 Resets the value of a C handle. More...
 
mkldnn_stream_t get (bool allow_emtpy=false) const
 Returns the value of the underlying C handle.
 

Detailed Description

An execution stream.

Examples:
cpu_cnn_inference_f32.cpp, cpu_cnn_inference_int8.cpp, cpu_cnn_training_bf16.cpp, cpu_cnn_training_f32.cpp, cpu_getting_started.cpp, cpu_memory_format_propagation.cpp, cpu_performance_profiling.cpp, cpu_rnn_inference_f32.cpp, cpu_rnn_inference_int8.cpp, cpu_rnn_training_f32.cpp, gpu_getting_started.cpp, and gpu_opencl_interop.cpp.

Member Enumeration Documentation

◆ flags

enum mkldnn::stream::flags : unsigned
strong

Stream flags.

Enumerator
default_order 

Default order execution.

Either in-order or out-of-order depending on the engine runtime

in_order 

In-order execution.

out_of_order 

Out-of-order execution.

default_flags 

Default stream configuration.


The documentation for this struct was generated from the following file: