-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_benchmark.resnet-50.bat
30 lines (22 loc) · 1.01 KB
/
run_benchmark.resnet-50.bat
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
@echo off && setlocal
set OV_SETUP_SCRIPT=%1
set OV_INSTALL_DIR=%~d1%~p1
set MODEL=models\resnet_v1.5_50\resnet_v1.5_50_i8.xml
set DEVICE=GPU
if "%~1"=="" (
echo Please set path of setupvars.bat
exit /b 0
)
if not exist %OV_SETUP_SCRIPT% (
echo could not find %OV_SETUP_SCRIPT%
exit /b 0
)
call %OV_SETUP_SCRIPT%
echo Mode: latency
FOR %%x IN (1 2 3) DO %OV_INSTALL_DIR%\samples\cpp\build\intel64\benchmark_app.exe -m %MODEL% -d %DEVICE% --hint latency -t 5 | findstr Throughput
echo Mode: tput -b 32
FOR %%x IN (1 2 3) DO %OV_INSTALL_DIR%\samples\cpp\build\intel64\benchmark_app.exe -m %MODEL% -d %DEVICE% --hint tput -t 5 -b 32 | findstr Throughput
echo Mode: tput -b 64
FOR %%x IN (1 2 3) DO %OV_INSTALL_DIR%\samples\cpp\build\intel64\benchmark_app.exe -m %MODEL% -d %DEVICE% --hint tput -t 5 -b 64 | findstr Throughput
echo Mode: none
FOR %%x IN (1 2 3) DO %OV_INSTALL_DIR%\samples\cpp\build\intel64\benchmark_app.exe -m %MODEL% -d %DEVICE% --hint none --nstreams 2 --nireq 4 -t 5 | findstr Throughput