Skip to content

Commit 7ec1c43

Browse files
authored
Support min_duration (#277)
* Lower the prebuilt version for llvm * Revert "Lower the prebuilt version for llvm" This reverts commit b5c9fa7. * support more tf versions in build from src * Create power-server.conf * Fix the run command for power runs * Support min_duration
1 parent 72fbb7a commit 7ec1c43

File tree

5 files changed

+75
-7
lines changed

5 files changed

+75
-7
lines changed

script/benchmark-program-mlperf/customize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def postprocess(i):
3333
echo \${MLC_MLPERF_RUN_COUNT} > \${MLC_RUN_DIR}/count.txt;
3434
3535
if [ \${MLC_MLPERF_RUN_COUNT} -eq 1 ]; then
36-
export MLC_MLPERF_USER_CONF="${MLC_MLPERF_RANGING_USER_CONF}";
36+
export MLC_MLPERF_USER_CONF="\${MLC_MLPERF_RANGING_USER_CONF}";
3737
else
38-
export MLC_MLPERF_USER_CONF="${MLC_MLPERF_TESTING_USER_CONF}";
38+
export MLC_MLPERF_USER_CONF="\${MLC_MLPERF_TESTING_USER_CONF}";
3939
fi
4040
;
4141

script/generate-mlperf-inference-user-conf/customize.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,13 @@ def preprocess(i):
356356
max_duration_ranging_s *
357357
1000) # in milliseconds
358358
if scenario == "MultiStream" or scenario == "SingleStream":
359-
if env.get('MLC_MLPERF_USE_MAX_DURATION', 'yes').lower() not in ["no", "false", "0"] and env.get(
360-
'MLC_MLPERF_MODEL_EQUAL_ISSUE_MODE', 'no').lower() not in ["yes", "1", "true"]:
361-
user_conf += ml_model_name + "." + scenario + \
362-
f".max_duration = {max_duration_valid}" + "\n"
363-
elif env.get('MLC_MLPERF_INFERENCE_MIN_DURATION', '') != '':
359+
if env.get('MLC_MLPERF_INFERENCE_MIN_DURATION', '') != '':
364360
user_conf += ml_model_name + "." + scenario + ".min_duration = " + \
365361
env['MLC_MLPERF_INFERENCE_MIN_DURATION'] + " \n"
362+
elif not is_false(env.get('MLC_MLPERF_USE_MAX_DURATION', 'yes')) and not is_true(env.get(
363+
'MLC_MLPERF_MODEL_EQUAL_ISSUE_MODE', 'no')):
364+
user_conf += ml_model_name + "." + scenario + \
365+
f".max_duration = {max_duration_valid}" + "\n"
366366
if scenario == "MultiStream":
367367
user_conf += ml_model_name + "." + scenario + ".min_query_count = " + \
368368
env.get(

script/install-tensorflow-from-src/meta.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,51 @@ versions:
344344
version: 5.0.0
345345
env:
346346
MLC_GIT_CHECKOUT: v2.9.0
347+
v2.12.0:
348+
deps:
349+
- names:
350+
- python
351+
- python3
352+
tags: get,python
353+
version_max: 3.11.999
354+
version_max_usable: 3.11.12
355+
version_min: 3.8.0
356+
- tags: get,gcc
357+
version_max: '12.9'
358+
version_min: '9'
359+
- tags: get,bazel
360+
version: 5.3.0
361+
env:
362+
MLC_GIT_CHECKOUT: v2.12.0
363+
v2.15.0:
364+
deps:
365+
- names:
366+
- python
367+
- python3
368+
tags: get,python
369+
version_max: 3.11.999
370+
version_max_usable: 3.11.12
371+
version_min: 3.9.0
372+
- tags: get,llvm
373+
version_max: '16.9.999'
374+
version_min: '16.0.0'
375+
- tags: get,bazel
376+
version: 6.1.0
377+
env:
378+
MLC_GIT_CHECKOUT: v2.15.0
379+
v2.18.0:
380+
deps:
381+
- names:
382+
- python
383+
- python3
384+
tags: get,python
385+
version_max: 3.12.999
386+
version_max_usable: 3.12.12
387+
version_min: 3.9.0
388+
- tags: get,llvm
389+
version_max: '17.9.999'
390+
version_min: '17.0.6'
391+
- tags: get,bazel
392+
version: 6.5.0
393+
env:
394+
MLC_GIT_CHECKOUT: v2.18.0

script/run-mlperf-inference-app/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ input_mapping:
6767
imagenet_path: IMAGENET_PATH
6868
implementation: MLC_MLPERF_IMPLEMENTATION
6969
lang: MLC_MLPERF_IMPLEMENTATION
70+
min_duration: MLC_MLPERF_INFERENCE_MIN_DURATION
7071
min_query_count: MLC_MLPERF_INFERENCE_MIN_QUERY_COUNT
7172
max_query_count: MLC_MLPERF_INFERENCE_MAX_QUERY_COUNT
7273
mode: MLC_MLPERF_LOADGEN_MODE
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[server]
2+
ntpserver = time.google.com
3+
listen = 0.0.0.0 4950
4+
5+
[ptd]
6+
ptd = C:\Users\arjun\CM\repos\local\cache\5a0a52d578724774\repo\PTD\binaries\ptd-windows-x86.exe
7+
analyzerCount = 2
8+
9+
[analyzer1]
10+
interfaceflag = -y
11+
devicetype = 49
12+
deviceport = C3YD21068E
13+
networkport = 8888
14+
15+
[analyzer2]
16+
interfaceflag = -g
17+
devicetype = 8
18+
deviceport = 20
19+
networkport = 8889

0 commit comments

Comments
 (0)