dlia_config.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header that defines advanced related properties for DLIA plugins.
7  * These properties should be used in SetConfig() and LoadNetwork() methods of plugins
8  *
9  * @file dlia_config.hpp
10  */
11 
12 #pragma once
13 
14 #include <string>
15 #include "ie_plugin_config.hpp"
16 
17 namespace InferenceEngine {
18 
19 namespace DliaMetrics {
20 
21 /**
22  * @def DLIA_METRIC_VALUE(name)
23  * @brief Shortcut for defining FPGA metric values
24  */
25 #define DLIA_METRIC_VALUE(name) InferenceEngine::DliaMetrics::name
26 #define DECLARE_DLIA_METRIC_VALUE(name) static constexpr auto name = #name
27 
28 /**
29  * @brief FP11 optimization capability. It's specific for FPGA device which can perform computations in FP11 data type.
30  */
31 DECLARE_DLIA_METRIC_VALUE(FP11);
32 
33 } // namespace DliaMetrics
34 
35 namespace DLIAConfigParams {
36 
37 /**
38  * @def DLIA_CONFIG_KEY(name)
39  * @brief Shortcut for defining FPGA configuration keys
40  */
41 #define DLIA_CONFIG_KEY(name) InferenceEngine::DLIAConfigParams::_CONFIG_KEY(DLIA_##name)
42 
43 #define DECLARE_DLIA_CONFIG_KEY(name) DECLARE_CONFIG_KEY(DLIA_##name)
44 #define DECLARE_DLIA_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(DLIA_##name)
45 
46 /**
47  * @brief The key to define the type of transformations for DLIA inputs and outputs.
48  * DLIA use custom data layout for input and output blobs. IE DLIA Plugin provides custom
49  * optimized version of transformation functions that do not use OpenMP and much more faster
50  * than native DLIA functions. Values: "NO" - optimized plugin transformations
51  * are used, "YES" - native DLIA transformations are used.
52  */
53 DECLARE_DLIA_CONFIG_KEY(IO_TRANSFORMATIONS_NATIVE);
54 
55 /**
56  * @brief The key to define path to DLA bitstreams architectures folder
57  */
58 DECLARE_DLIA_CONFIG_KEY(ARCH_ROOT_DIR);
59 
60 /**
61  * @brief The bool key to define whether theoretical performance estimation should be performed.
62  * If true, the estimated performance is dumped via performance counters as "FPGA theoretical execute time"
63  */
64 DECLARE_DLIA_CONFIG_KEY(PERF_ESTIMATION);
65 
66 /**
67  * @brief The bool key to define whether information messages with a reason are printed in case the layer is unsupported by DLA
68  */
69 DECLARE_DLIA_CONFIG_KEY(DUMP_SUPPORTED_LAYERS_INFORMATION);
70 
71 } // namespace DLIAConfigParams
72 } // namespace InferenceEngine
Definition: ie_argmax_layer.hpp:11
a header for advanced hardware related properties for clDNN plugin To use in SetConfig() method of pl...