forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[COMMIT SLIDER]Preparation for e2e job (openvinotoolkit#23135)
### Details: - *item1* - *...* ### Tickets: - *ticket-id*
- Loading branch information
1 parent
b0bff33
commit c369c8a
Showing
13 changed files
with
512 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/plugins/intel_cpu/tools/commit_slider/utils/cfg_manager.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import json | ||
import os | ||
|
||
|
||
class CfgManager(): | ||
def __init__(self, cfg) -> None: | ||
self.cfg = cfg | ||
|
||
def applyTemplate(self): | ||
if not "template" in self.cfg: | ||
return self.cfg | ||
logPath = self.cfg["logPath"] | ||
tmplName = self.cfg["template"]["name"] | ||
fullCfg = {} | ||
if tmplName == "bm_simple": | ||
fullCfg = self.generatebmSimpleTemplate() | ||
else: | ||
raise Exception( | ||
"Unknown template '{}'".format(tmplName) | ||
) | ||
fullCfg["logPath"] = logPath | ||
return fullCfg | ||
|
||
def readJsonTmpl(self, tmplFileName: str): | ||
tmplFileName = os.path.join( | ||
"utils/cfg_samples/", tmplFileName | ||
) | ||
with open(tmplFileName) as cfgFile: | ||
tmplJSON = json.load(cfgFile) | ||
return tmplJSON | ||
|
||
def generatebmSimpleTemplate(self): | ||
tmpl = self.cfg["template"] | ||
tmpJSON = self.readJsonTmpl("bm_perf_for_CI.json") | ||
devParam = "perfAppropriateDeviation" | ||
if "appCmd" in tmpl: | ||
tmpJSON["appCmd"] = tmpl["appCmd"] | ||
else: | ||
raise("No 'appcmd' in template") | ||
if devParam in tmpl: | ||
tmpJSON["runConfig"][devParam] = tmpl[devParam] | ||
return tmpJSON |
10 changes: 10 additions & 0 deletions
10
src/plugins/intel_cpu/tools/commit_slider/utils/cfg_samples/bm_perf_for_CI.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"appCmd":"{appCmd}", | ||
"makeCmd":"cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_MKL_DNN=ON -DENABLE_CLDNN=OFF -DENABLE_INTEL_GNA=OFF -DENABLE_INTEL_VPU=OFF -DENABLE_INTEL_MYRIAD=OFF -DENABLE_INTEL_MYRIAD_COMMON=OFF -DENABLE_HDDL=OFF -DENABLE_MODELS=OFF -DENABLE_SAMPLES=ON -DENABLE_TESTS=OFF -DENABLE_HETERO=OFF -DENABLE_TEMPLATE=OFF -DENABLE_CPU_DEBUG_CAPS=OFF -DENABLE_DEBUG_CAPS=OFF -DENABLE_OV_CORE_BACKEND_UNIT_TESTS=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 ..", | ||
"runConfig":{ | ||
"mode":"bmPerf", | ||
"traversal":"firstFailedVersion", | ||
"perfAppropriateDeviation": 0.05 | ||
}, | ||
"extendBuildCommand":true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.