Struct ov::threading::IStreamsExecutor::Config¶
-
struct Config
Defines IStreamsExecutor configuration.
Public Types
-
enum class StreamsMode
This enum contains definition of each sub streams mode, indicating the main stream situation.
Values:
-
enumerator SUB_STREAMS_NULL
Do not create sub streams.
-
enumerator SUB_STREAMS_FOR_SOCKET
Create sub streams for multiple sockets in main stream.
-
enumerator LATENCY
latency mode
-
enumerator THROUGHPUT
throughput mode
-
enumerator SUB_STREAMS_NULL
Public Functions
-
inline Config(std::string name = "StreamsExecutor", int streams = 1, int threadsPerStream = 0, ThreadBindingType threadBindingType = ThreadBindingType::NONE, int threadBindingStep = 1, int threadBindingOffset = 0, int threads = 0, PreferredCoreType threadPreferredCoreType = PreferredCoreType::ANY, std::vector<std::vector<int>> streamsInfoTable = {}, bool cpuReservation = false)
A constructor with arguments.
- Parameters
name – [in] The executor name
streams – [in]
threadsPerStream – [in]
threadBindingType – [in]
threadBindingStep – [in]
threadBindingOffset – [in]
threads – [in]
threadPreferredCoreType – [in]
streamsInfoTable – [in]
cpuReservation – [in]
-
void set_property(const ov::AnyMap &properties)
Sets configuration.
- Parameters
properties – map of properties
-
enum class StreamsMode