forked from openvinotoolkit/npu_compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
207 lines (188 loc) · 7.46 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
"version": 2,
"configurePresets": [
{
"name": "BuildOptimization",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER_LAUNCHER": {
"type": "STRING",
"value": "ccache"
},
"CMAKE_CXX_COMPILER_LAUNCHER": {
"type": "STRING",
"value": "ccache"
},
"ENABLE_FASTER_BUILD": true
}
},
{
"name": "EnableClang",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "LinkerOptimization",
"hidden": true,
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS": {
"type": "STRING",
"value": "-B /usr/libexec/mold -Wl,--fork -Wl,--quick-exit -Wl,--thread-count=32"
},
"CMAKE_MODULE_LINKER_FLAGS": {
"type": "STRING",
"value": "-B /usr/libexec/mold -Wl,--fork -Wl,--quick-exit -Wl,--thread-count=32"
},
"CMAKE_SHARED_LINKER_FLAGS": {
"type": "STRING",
"value": "-B /usr/libexec/mold -Wl,--fork -Wl,--quick-exit -Wl,--thread-count=32"
}
}
},
{
"name": "EnableTests",
"hidden": true,
"cacheVariables": {
"ENABLE_TESTS": true,
"ENABLE_FUNCTIONAL_TESTS": true
}
},
{
"name": "EnableModelsAndValidationSet",
"hidden": true,
"cacheVariables": {
"ENABLE_MODELS": true,
"ENABLE_VALIDATION_SET": true
}
},
{
"name": "Disabler",
"hidden": true,
"description": "Disables all options. It is used as a base for configuration where is only needed option are enabled to speed-up build. Should be used as the first argument to inherits.",
"cacheVariables": {
"ENABLE_TESTS": false,
"ENABLE_FUNCTIONAL_TESTS": false,
"ENABLE_DEVELOPER_BUILD": false,
"ENABLE_MODELS": false,
"ENABLE_VALIDATION_SET": false,
"ENABLE_LTO": false,
"ENABLE_FASTER_BUILD": false,
"ENABLE_CPPLINT": false,
"ENABLE_CLANG_FORMAT": false,
"ENABLE_ZEROAPI_BACKEND": false,
"BUILD_COMPILER_FOR_DRIVER": false,
"ENABLE_DRIVER_COMPILER_ADAPTER": false,
"ENABLE_EMULATOR": false,
"ENABLE_VPUX_DOCS": false,
"ENABLE_IMD_BACKEND": false
}
},
{
"name": "vpuxDeveloper",
"description": "Default configuration preset for VPUX Compiler development. Enables VPUX compiler and generic OV tests, and disables plugin specific builds. Also, enables IMD backend",
"binaryDir": "${sourceDir}/build-x86_64/Debug",
"displayName": "vpuxDeveloper",
"inherits": ["BuildOptimization", "EnableTests"],
"cacheVariables": {
"InferenceEngineDeveloperPackage_DIR": {
"type": "FILEPATH",
"value": "$env{OPENVINO_HOME}/build-x86_64/Debug"
},
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Debug"
},
"CMAKE_EXPORT_COMPILE_COMMANDS" : true,
"ENABLE_DEVELOPER_BUILD": true,
"ENABLE_CLANG_FORMAT": true,
"ENABLE_IMD_BACKEND": true,
"ENABLE_CPPLINT": false,
"ENABLE_MODELS": false,
"ENABLE_VALIDATION_SET": false,
"ENABLE_LTO": false,
"ENABLE_ZEROAPI_BACKEND": true,
"ENABLE_EMULATOR": false,
"ENABLE_VPUX_DOCS": false
}
},
{
"name": "vpuxRelease",
"description": "Default configuration preset for VPUX Compiler development. Enables VPUX compiler and generic OV tests, and disables plugin specific builds. Also, enables IMD backend",
"binaryDir": "${sourceDir}/build-x86_64/Release",
"displayName": "vpuxRelease",
"inherits": ["BuildOptimization"],
"cacheVariables": {
"InferenceEngineDeveloperPackage_DIR": {
"type": "FILEPATH",
"value": "$env{OPENVINO_HOME}/build-x86_64/Release"
},
"CMAKE_BUILD_TYPE": {
"type": "STRING",
"value": "Release"
},
"CMAKE_EXPORT_COMPILE_COMMANDS" : true,
"ENABLE_ZEROAPI_BACKEND": true,
"ENABLE_VPUX_DOCS": true,
"ENABLE_CLANG_FORMAT": true,
"ENABLE_CPPLINT": false,
"ENABLE_IMD_BACKEND": false,
"ENABLE_DEVELOPER_BUILD": false,
"ENABLE_TESTS": false,
"ENABLE_FUNCTIONAL_TESTS": false,
"ENABLE_MODELS": false,
"ENABLE_VALIDATION_SET": false,
"ENABLE_LTO": false,
"ENABLE_EMULATOR": false
}
},
{
"name": "OpenVINOWithVPUX",
"hidden": true,
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS" : true,
"ENABLE_HETERO": true,
"ENABLE_INTEL_CPU": true,
"ENABLE_INTEL_GNA": false,
"ENABLE_INTEL_GPU": false,
"ENABLE_TEMPLATE": true,
"ENABLE_IR_V7_READER": false,
"ENABLE_OV_ONNX_FRONTEND": false,
"ENABLE_OV_PADDLE_FRONTEND": false,
"ENABLE_OV_TF_FRONTEND": false,
"ENABLE_OV_TF_LITE_FRONTEND": false,
"THREADING": {
"type": "STRING",
"value": "TBB"
},
"ENABLE_DATA": false,
"ENABLE_GAPI_PREPROCESSING": false,
"ENABLE_LTO": false,
"ENABLE_OPENCV": true,
"ENABLE_TESTS": true,
"ENABLE_FUNCTIONAL_TESTS": true,
"IE_EXTRA_MODULES": {
"type": "FILEPATH",
"value": "./modules/vpux"
}
}
},
{
"name": "ovVpuxDeveloper",
"description": "Same as vpuxDeveloper, but it builds VPUX plugin in OpenVINO project tree. Please make sure that VPUX plugin is located inside OpenVINO repo in modules/vpux folder.",
"binaryDir": "${sourceDir}/build-x86_64/Debug",
"displayName": "ovVpuxDeveloper",
"inherits": ["OpenVINOWithVPUX", "vpuxDeveloper"]
},
{
"name": "ovVpuxRelease",
"description": "Same as vpuxRelease, but it builds VPUX plugin in OpenVINO project tree. Please make sure that VPUX plugin is located inside OpenVINO repo in modules/vpux folder.",
"binaryDir": "${sourceDir}/build-x86_64/Release",
"displayName": "ovVpuxRelease",
"inherits": ["OpenVINOWithVPUX", "vpuxRelease"]
}
]
}