Defines IStreamsExecutor configuration. More...
#include <ie_istreams_executor.hpp>
Public Member Functions | |
std::vector< std::string > | SupportedKeys () |
Supported Configuration keys. More... | |
void | SetConfig (const std::string &key, const std::string &value) |
Parses configuration key/value pair. More... | |
Parameter | GetConfig (const std::string &key) |
Return configuration value. More... | |
Config (std::string name="StreamsExecutor", int streams=1, int threadsPerStream=0, ThreadBindingType threadBindingType=ThreadBindingType::NONE, int threadBindingStep=1, int threadBindingOffset=0, int threads=0) | |
A constructor with arguments. More... | |
Static Public Member Functions | |
static Config | MakeDefaultMultiThreaded (const Config &initial) |
Create appropriate multithreaded configuration filing unconfigured values from initial configuration using hardware properties. More... | |
Data Fields | |
std::string | _name |
Used by ITT to name executor threads. | |
int | _streams = 1 |
Number of streams. | |
int | _threadsPerStream = 0 |
Number of threads per stream that executes ie_parallel calls. | |
ThreadBindingType | _threadBindingType = ThreadBindingType::NONE |
Thread binding to hardware resource type. No binding by default. | |
int | _threadBindingStep = 1 |
In case of CORES binding offset type thread binded to cores with defined step. | |
int | _threadBindingOffset = 0 |
In case of CORES binding offset type thread binded to cores starting from offset. | |
int | _threads = 0 |
Number of threads distributed between streams. Reserved. Should not be used. | |
Defines IStreamsExecutor configuration.
|
inline |
A constructor with arguments.
[in] | name | The executor name |
[in] | streams | Number of streams. |
[in] | threadsPerStream | Number of threads per stream that executes ie_parallel calls. |
[in] | threadBindingType | Thread binding to hardware resource type. No binding by default. |
[in] | threadBindingStep | In case of CORES binding offset type thread binded to cores with defined step. |
[in] | threadBindingOffset | In case of CORES binding offset type thread binded to cores starting from offset. |
[in] | threads | Number of threads distributed between streams. Reserved. Should not be used. |
Parameter InferenceEngine::IStreamsExecutor::Config::GetConfig | ( | const std::string & | key | ) |
Return configuration value.
key | configuration key |
|
static |
Create appropriate multithreaded configuration filing unconfigured values from initial configuration using hardware properties.
initial | Inital configuration |
void InferenceEngine::IStreamsExecutor::Config::SetConfig | ( | const std::string & | key, |
const std::string & | value | ||
) |
Parses configuration key/value pair.
key | configuration key |
value | configuration values |
std::vector<std::string> InferenceEngine::IStreamsExecutor::Config::SupportedKeys | ( | ) |
Supported Configuration keys.