cldnn_config.hpp
1 // Copyright (C) 2018-2019 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 ie_plugin_config.hpp
10  */
11 #pragma once
12 
13 #include <string>
14 #include "ie_plugin_config.hpp"
15 
16 namespace InferenceEngine {
17 
18 namespace CLDNNConfigParams {
19 
20 /**
21 * @brief shortcut for defining configuration keys
22 */
23 #define CLDNN_CONFIG_KEY(name) InferenceEngine::CLDNNConfigParams::_CONFIG_KEY(CLDNN_##name)
24 #define DECLARE_CLDNN_CONFIG_KEY(name) DECLARE_CONFIG_KEY(CLDNN_##name)
25 #define DECLARE_CLDNN_CONFIG_VALUE(name) DECLARE_CONFIG_VALUE(CLDNN_##name)
26 
27 /**
28 * @brief This key instructs the clDNN plugin to use the OpenCL queue priority hint
29 * as defined in https://www.khronos.org/registry/OpenCL/specs/opencl-2.1-extensions.pdf
30 * this option should be used with an unsigned integer value (1 is lowest priority)
31 * 0 means no priority hint is set and default queue is created.
32 */
33 DECLARE_CLDNN_CONFIG_KEY(PLUGIN_PRIORITY);
34 
35 /**
36 * @brief This key instructs the clDNN plugin to use throttle hints the OpenCL queue throttle hint
37 * as defined in https://www.khronos.org/registry/OpenCL/specs/opencl-2.1-extensions.pdf,
38 * chapter 9.19. This option should be used with an unsigned integer value (1 is lowest energy consumption)
39 * 0 means no throttle hint is set and default queue created.
40 */
41 DECLARE_CLDNN_CONFIG_KEY(PLUGIN_THROTTLE);
42 
43 /**
44 * @brief This key controls clDNN memory pool optimization.
45 * Turned off by default.
46 */
47 DECLARE_CLDNN_CONFIG_KEY(MEM_POOL);
48 
49 /**
50 * @brief This key defines the directory name to which clDNN graph visualization will be dumped.
51 */
52 DECLARE_CLDNN_CONFIG_KEY(GRAPH_DUMPS_DIR);
53 
54 /**
55 * @brief This key defines the directory name to which full program sources will be dumped.
56 */
57 DECLARE_CLDNN_CONFIG_KEY(SOURCES_DUMPS_DIR);
58 
59 } // namespace CLDNNConfigParams
60 } // 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...