Skip to content

Commit 1300d9e

Browse files
committed
functional diagnostics added to remplates
1 parent 51cbf4a commit 1300d9e

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

src/plugins/intel_cpu/tools/commit_slider/utils/cfg_manager.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ def applyTemplate(self):
2222
logPath = self.cfg["logPath"]
2323
tmplName = self.cfg["template"]["name"]
2424
fullCfg = {}
25+
26+
# todo: generalize tmplcfg generator
2527
if tmplName == "bm_simple":
2628
fullCfg = self.generatebmSimpleTemplate()
2729
elif tmplName == "e2e":
2830
fullCfg = self.generateE2ETemplate()
31+
elif tmplName == "bm_functional":
32+
fullCfg = self.generatebmFunctionalTemplate()
2933
else:
3034
raise Exception(
3135
"Unknown template '{}'".format(tmplName)
@@ -53,7 +57,7 @@ def generatebmSimpleTemplate(self):
5357
tmpJSON["runConfig"][devParam] = tmpl[devParam]
5458
return tmpJSON
5559

56-
def generateE2ETemplate(self):
60+
def generateE2ETemplate(self):
5761
tmpl = self.cfg["template"]
5862
tmpJSON = self.readJsonTmpl("e2e_for_CI.json")
5963

@@ -77,3 +81,17 @@ def generateE2ETemplate(self):
7781
tmpJSON["cachedPathConfig"]["subPath"] = subPath
7882

7983
return tmpJSON
84+
85+
def generatebmFunctionalTemplate(self):
86+
tmpl = self.cfg["template"]
87+
tmpJSON = self.readJsonTmpl("bm_output.json")
88+
stopPattern = "stopPattern"
89+
if "appCmd" in tmpl:
90+
tmpJSON["appCmd"] = tmpl["appCmd"]
91+
else:
92+
raise("No 'appcmd' in template")
93+
if stopPattern in tmpl:
94+
tmpJSON["runConfig"][stopPattern] = tmpl[stopPattern]
95+
else:
96+
raise("No 'stopPattern' in template")
97+
return tmpJSON
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"appCmd" : "./benchmark_app -m <model_path> -d CPU -t 10",
2+
"appCmd" : "{appCmd}",
33
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_SAMPLES=ON -DENABLE_TESTS=OFF -DENABLE_HETERO=OFF -DENABLE_TEMPLATE=OFF -DENABLE_CPU_DEBUG_CAPS=OFF -DENABLE_DEBUG_CAPS=OFF -DENABLE_OPENVINO_DEBUG=OFF -DCMAKE_CXX_FLAGS=-Wno-deprecated -DCMAKE_C_FLAGS=-Wno-deprecated -DCMAKE_CXX_FLAGS=-Wno-deprecated-declarations -DCMAKE_C_FLAGS=-Wno-deprecated-declarations ..",
44
"runConfig" : {
55
"commitList" : {
66
"getCommitListCmd" : "git log <start_commit>..<end_commit> --boundary --pretty=\"%h\""
77
},
88
"mode" : "checkOutput",
99
"traversal" : "firstFailedVersion",
10-
"stopPattern" : "(.)*<bm_error_message>(.)*"
11-
}
10+
"stopPattern" : "(.)*{bm_error_message}(.)*"
11+
},
12+
"extendBuildCommand":true
1213
}

0 commit comments

Comments
 (0)