cldnn_config.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @brief A header for advanced hardware related properties for clDNN plugin
7  * To use in SetConfig() method of plugins
8  *
9  * @file
10  */
11 #pragma once
12 
13 #include <string>
14 #include "ie_plugin_config.hpp"
15 
16 namespace InferenceEngine {
17 
18 /**
19  * @brief GPU plugin configuration
20  */
21 namespace CLDNNConfigParams {
22 
23 /**
24 * @brief shortcut for defining configuration keys
25 */
26 #define CLDNN_CONFIG_KEY(name) InferenceEngine::CLDNNConfigParams::_CONFIG_KEY(CLDNN_##name)
27 #define DECLARE_CLDNN_CONFIG_KEY(name) DECLARE_CONFIG_KEY(CLDNN_##name)
28 #define DECLARE_CLDNN_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(CLDNN_##name)
29 
30 /**
31 * @brief This key instructs the clDNN plugin to use the OpenCL queue priority hint
32 * as defined in https://www.khronos.org/registry/OpenCL/specs/opencl-2.1-extensions.pdf
33 * this option should be used with an unsigned integer value (1 is lowest priority)
34 * 0 means no priority hint is set and default queue is created.
35 */
36 DECLARE_CLDNN_CONFIG_KEY(PLUGIN_PRIORITY);
37 
38 /**
39 * @brief This key instructs the clDNN plugin to use throttle hints the OpenCL queue throttle hint
40 * as defined in https://www.khronos.org/registry/OpenCL/specs/opencl-2.1-extensions.pdf,
41 * chapter 9.19. This option should be used with an unsigned integer value (1 is lowest energy consumption)
42 * 0 means no throttle hint is set and default queue created.
43 */
44 DECLARE_CLDNN_CONFIG_KEY(PLUGIN_THROTTLE);
45 
46 /**
47 * @brief This key controls clDNN memory pool optimization.
48 * Turned off by default.
49 */
50 DECLARE_CLDNN_CONFIG_KEY(MEM_POOL);
51 
52 /**
53 * @brief This key defines the directory name to which clDNN graph visualization will be dumped.
54 */
55 DECLARE_CLDNN_CONFIG_KEY(GRAPH_DUMPS_DIR);
56 
57 /**
58 * @brief This key defines the directory name to which full program sources will be dumped.
59 */
60 DECLARE_CLDNN_CONFIG_KEY(SOURCES_DUMPS_DIR);
61 
62 /**
63 * @brief This key turns usage of int8 optimizations and qunatized models on.
64 */
65 DECLARE_CLDNN_CONFIG_KEY(INT8_ENABLED);
66 
67 /**
68 * @brief This key should be set to correctly handle NV12 input without pre-processing.
69 * Turned off by default.
70 */
71 DECLARE_CLDNN_CONFIG_KEY(NV12_TWO_INPUTS);
72 
73 
74 } // namespace CLDNNConfigParams
75 } // namespace InferenceEngine
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
a header for advanced hardware related properties for IE plugins