3 # About 150% of total time
6 #vmImage: 'ubuntu-18.04'
7 name: LIN_VMSS_VENV_F8S_WU2
11 BIN_DIR: ../bin/intel64/$(BUILD_TYPE)
25 displayName: 'System properties'
27 sudo apt --assume-yes install libusb-1.0-0-dev
28 python3 -m pip install -r ./inference-engine/ie_bridges/python/requirements.txt
29 # For running Python API tests
30 python3 -m pip install -r ./inference-engine/ie_bridges/python/src/requirements-dev.txt
31 displayName: 'Install dependencies'
33 wget https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-linux.zip
35 sudo cp -v ninja /usr/local/bin/
36 displayName: 'Install Ninja'
37 - script: git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
38 displayName: 'Clone submodules'
42 displayName: 'Create build directory'
45 workingDirectory: dldt-build
46 # CMake must get Python 3.x version by default
47 cmakeArgs: .. -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DENABLE_TESTS=ON
49 workingDirectory: dldt-build
50 displayName: 'Build Lin'
51 - script: ls -alR ../bin/
52 workingDirectory: dldt-build
53 displayName: 'List files'
54 - script: $(BIN_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU*
55 workingDirectory: dldt-build
56 displayName: 'nGraph UT'
57 continueOnError: false
58 - script: $(BIN_DIR)/InferenceEngineUnitTests --gtest_print_time=1
59 workingDirectory: dldt-build
60 displayName: 'IE UT old'
61 continueOnError: false
62 - script: $(BIN_DIR)/ieUnitTests
63 workingDirectory: dldt-build
65 continueOnError: false
66 - script: $(BIN_DIR)/cpuUnitTests
67 workingDirectory: dldt-build
69 continueOnError: false
70 - script: $(BIN_DIR)/gnaUnitTests
71 workingDirectory: dldt-build
73 continueOnError: false
74 - script: $(BIN_DIR)/vpuUnitTests
75 workingDirectory: dldt-build
77 continueOnError: false
78 - script: $(BIN_DIR)/ieFuncTests
79 workingDirectory: dldt-build
80 displayName: 'IE FuncTests'
81 continueOnError: false
82 - script: $(BIN_DIR)/cpuFuncTests --gtest_print_time=1
83 workingDirectory: dldt-build
84 displayName: 'CPU FuncTests'
85 continueOnError: false
86 - script: $(BIN_DIR)/MklDnnBehaviorTests
87 workingDirectory: dldt-build
88 displayName: 'MklDnnBehaviorTests'
89 continueOnError: false
91 git clone https://github.com/openvinotoolkit/testdata.git
92 git clone https://github.com/google/gtest-parallel.git
93 displayName: 'Clone testdata & gtest-parallel'
95 export DATA_PATH=`pwd`/../testdata
96 export MODELS_PATH=`pwd`/../testdata
97 python3 ../gtest-parallel/gtest-parallel $(BIN_DIR)/MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --print_test_times --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=-smoke_MobileNet/ModelTransformationsTest.LPT/mobilenet_v2_tf_depthwise_batch1_inPluginDisabled_inTestDisabled_asymmetric* -- --gtest_print_time=1
98 workingDirectory: dldt-build
99 displayName: 'MklDnnFunctionalTests'
100 continueOnError: false
102 export DATA_PATH=`pwd`/../testdata
103 export MODELS_PATH=`pwd`/../testdata
104 $(BIN_DIR)/InferenceEngineCAPITests
105 workingDirectory: dldt-build
106 displayName: 'IE CAPITests'
107 continueOnError: false
109 export DATA_PATH=`pwd`/../testdata
110 export MODELS_PATH=`pwd`/../testdata
111 export LD_LIBRARY_PATH=`pwd`/$(BIN_DIR)/lib
112 export PYTHONPATH=`pwd`/$(BIN_DIR)/lib/python_api/python3.6
114 cd ../inference-engine/ie_bridges/python/tests
116 workingDirectory: dldt-build
117 displayName: 'Python API Tests'
118 continueOnError: false
122 # About 200% of total time (perfomace of Mac hosts is unstable)
123 timeoutInMinutes: 180
125 vmImage: 'macOS-10.15'
129 BIN_DIR: ../bin/intel64/$(BUILD_TYPE)
131 - task: UsePythonVersion@0
140 xcrun --sdk macosx --show-sdk-version
143 displayName: 'System properties'
146 brew install automake
147 displayName: 'Install dependencies'
148 - script: brew install ninja
149 displayName: 'Install Ninja'
150 - script: git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
151 displayName: 'Clone submodules'
155 displayName: 'Create build directory'
157 export PATH="/usr/local/opt/cython/bin:$PATH"
160 # Disable errors with Ninja
161 export CXXFLAGS="-Wno-error=unused-command-line-argument"
162 export CFLAGS="-Wno-error=unused-command-line-argument"
163 cmake .. -GNinja -DVERBOSE_BUILD=ON -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_PYTHON=ON -DENABLE_TESTS=ON
164 workingDirectory: dldt-build
167 workingDirectory: dldt-build
168 displayName: 'Build Mac'
169 - script: ls -alR ../bin/
170 workingDirectory: dldt-build
171 displayName: 'List files'
172 - script: $(BIN_DIR)/unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU*:IE_CPU.onnx_model_sigmoid
173 workingDirectory: dldt-build
174 displayName: 'nGraph UT'
175 continueOnError: false
176 - script: $(BIN_DIR)/InferenceEngineUnitTests --gtest_print_time=1
177 workingDirectory: dldt-build
178 displayName: 'IE UT old'
179 continueOnError: false
180 - script: $(BIN_DIR)/ieUnitTests
181 workingDirectory: dldt-build
183 continueOnError: false
184 - script: $(BIN_DIR)/cpuUnitTests
185 workingDirectory: dldt-build
186 displayName: 'CPU UT'
187 continueOnError: false
188 - script: $(BIN_DIR)/vpuUnitTests
189 workingDirectory: dldt-build
190 displayName: 'VPU UT'
191 continueOnError: false
192 - script: $(BIN_DIR)/ieFuncTests
193 workingDirectory: dldt-build
194 displayName: 'IE FuncTests'
195 continueOnError: false
196 - script: $(BIN_DIR)/cpuFuncTests --gtest_print_time=1
197 workingDirectory: dldt-build
198 displayName: 'CPU FuncTests'
199 continueOnError: false
200 - script: $(BIN_DIR)/MklDnnBehaviorTests
201 workingDirectory: dldt-build
202 displayName: 'MklDnnBehaviorTests'
203 continueOnError: false
205 git clone https://github.com/openvinotoolkit/testdata.git
206 git clone https://github.com/google/gtest-parallel.git
207 displayName: 'Clone testdata & gtest-parallel'
209 export DATA_PATH=`pwd`/../testdata
210 export MODELS_PATH=`pwd`/../testdata
211 python3 ../gtest-parallel/gtest-parallel $(BIN_DIR)/MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --print_test_times --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=-smoke_MobileNet/ModelTransformationsTest.LPT/mobilenet_v2_tf_depthwise_batch1_inPluginDisabled_inTestDisabled_asymmetric* -- --gtest_print_time=1
212 workingDirectory: dldt-build
213 displayName: 'MklDnnFunctionalTests'
214 continueOnError: false
216 export DATA_PATH=`pwd`/../testdata
217 export MODELS_PATH=`pwd`/../testdata
218 $(BIN_DIR)/InferenceEngineCAPITests
219 workingDirectory: dldt-build
220 displayName: 'IE CAPITests'
221 continueOnError: false
224 # About 150% of total time
225 timeoutInMinutes: 120
227 #vmImage: 'vs2017-win2016'
228 name: WIN_VMSS_VENV_F8S_WU2
233 BUILD_DIR: D:\dldt-build
234 BIN_DIR: ..\bin\intel64
235 MSVS_VARS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
236 MSVC_COMPILER_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\Hostx64\x64\cl.exe
242 wmic computersystem get TotalPhysicalMemory
244 wmic logicaldisk get description,name
247 displayName: 'System properties'
249 certutil -urlcache -split -f https://github.com/ninja-build/ninja/releases/download/v1.10.0/ninja-win.zip ninja-win.zip
250 powershell -command "Expand-Archive -Force ninja-win.zip"
251 displayName: Install Ninja
252 - script: git submodule update --init --recursive --jobs $(WORKERS_NUMBER)
253 displayName: 'Clone submodules'
255 rd /Q /S $(BUILD_DIR)
256 mkdir $(BUILD_DIR)\bin
259 displayName: 'Create build directory'
261 set PATH=$(Build.Repository.LocalPath)\ninja-win;%PATH%
262 call "$(MSVS_VARS_PATH)" && cmake -GNinja -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -DENABLE_TESTS=ON -DCMAKE_C_COMPILER:PATH="$(MSVC_COMPILER_PATH)" -DCMAKE_CXX_COMPILER:PATH="$(MSVC_COMPILER_PATH)" $(Build.Repository.LocalPath)
263 workingDirectory: $(BUILD_DIR)
266 set PATH=$(Build.Repository.LocalPath)\ninja-win;%PATH%
267 call "$(MSVS_VARS_PATH)" && ninja
268 workingDirectory: $(BUILD_DIR)
269 displayName: 'Build Win'
270 - script: dir ..\bin\ /s /b
271 workingDirectory: dldt-build
272 displayName: 'List files'
274 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
275 $(BIN_DIR)\unit-test --gtest_print_time=1 --gtest_filter=-backend_api.config_unsupported:*IE_GPU*
276 workingDirectory: dldt-build
277 displayName: 'nGraph UT'
278 continueOnError: false
280 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
281 $(BIN_DIR)\InferenceEngineUnitTests --gtest_print_time=1
282 workingDirectory: dldt-build
283 displayName: 'IE UT old'
284 continueOnError: false
286 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
287 $(BIN_DIR)\ieUnitTests
288 workingDirectory: dldt-build
290 continueOnError: false
292 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
293 $(BIN_DIR)\cpuUnitTests
294 workingDirectory: dldt-build
295 displayName: 'CPU UT'
296 continueOnError: false
298 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
299 $(BIN_DIR)\gnaUnitTests
300 workingDirectory: dldt-build
301 displayName: 'GNA UT'
302 continueOnError: false
304 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
305 $(BIN_DIR)\vpuUnitTests
306 workingDirectory: dldt-build
307 displayName: 'VPU UT'
308 continueOnError: false
310 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
311 $(BIN_DIR)\ieFuncTests
312 workingDirectory: dldt-build
313 displayName: 'IE FuncTests'
314 continueOnError: false
316 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
317 $(BIN_DIR)\cpuFuncTests --gtest_print_time=1
318 workingDirectory: dldt-build
319 displayName: 'CPU FuncTests'
320 continueOnError: false
322 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;%PATH%
323 $(BIN_DIR)\MklDnnBehaviorTests
324 workingDirectory: dldt-build
325 displayName: 'MklDnnBehaviorTests'
326 continueOnError: false
328 git clone https://github.com/openvinotoolkit/testdata.git
329 git clone https://github.com/google/gtest-parallel.git
330 workingDirectory: $(BUILD_DIR)
331 displayName: 'Clone testdata & gtest-parallel'
332 # Add for gtest-parallel, it hangs now (CVS-33386)
333 #python $(BUILD_DIR)\gtest-parallel\gtest-parallel $(BIN_DIR)\MklDnnFunctionalTests --workers=$(WORKERS_NUMBER) --print_test_times --dump_json_test_results=MklDnnFunctionalTests.json --gtest_filter=-smoke_MobileNet/ModelTransformationsTest.LPT/mobilenet_v2_tf_depthwise_batch1_inPluginDisabled_inTestDisabled_asymmetric* -- --gtest_print_time=1
335 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;$(Build.Repository.LocalPath)\inference-engine\temp\opencv_4.3.0\opencv\bin;%PATH%
336 set DATA_PATH=$(BUILD_DIR)\testdata
337 set MODELS_PATH=$(BUILD_DIR)\testdata
338 $(BIN_DIR)\MklDnnFunctionalTests --gtest_print_time=1 --gtest_filter=-smoke_MobileNet/ModelTransformationsTest.LPT/mobilenet_v2_tf_depthwise_batch1_inPluginDisabled_inTestDisabled_asymmetric*
339 workingDirectory: dldt-build
340 displayName: 'MklDnnFunctionalTests'
341 continueOnError: false
343 set PATH=$(Build.Repository.LocalPath)\inference-engine\temp\tbb\bin;$(Build.Repository.LocalPath)\inference-engine\temp\opencv_4.3.0\opencv\bin;%PATH%
344 set DATA_PATH=$(BUILD_DIR)\testdata
345 set MODELS_PATH=$(BUILD_DIR)\testdata
346 $(BIN_DIR)\InferenceEngineCAPITests
347 workingDirectory: dldt-build
348 displayName: 'IE CAPITests'
349 continueOnError: false