[CPU][Commit slider] Add commit to preprocess args (#18677)
This commit is contained in:
parent
c52afe8032
commit
61be577822
@ -1,5 +1,5 @@
|
||||
{
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=OFF -DENABLE_MODELS=OFF -DENABLE_SAMPLES=ON -DENABLE_TESTS=OFF -DENABLE_HETERO=OFF -DENABLE_TEMPLATE=OFF -DENABLE_CPU_DEBUG_CAPS=ON -DENABLE_DEBUG_CAPS=ON -DENABLE_OPENVINO_DEBUG=ON ..",
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=OFF -DENABLE_MODELS=OFF -DENABLE_SAMPLES=ON -DENABLE_TESTS=OFF -DENABLE_HETERO=OFF -DENABLE_TEMPLATE=OFF -DENABLE_CPU_DEBUG_CAPS=ON -DENABLE_DEBUG_CAPS=ON -DENABLE_OPENVINO_DEBUG=ON -DCMAKE_CXX_FLAGS=-Wno-deprecated -DCMAKE_C_FLAGS=-Wno-deprecated -DCMAKE_CXX_FLAGS=-Wno-deprecated-declarations -DCMAKE_C_FLAGS=-Wno-deprecated-declarations ..",
|
||||
"appCmd" : "./benchmark_app -m <model_path> -t 10",
|
||||
"envVars" : [
|
||||
{"name" : "OV_CPU_BLOB_DUMP_NODE_TYPE", "val" : "Output"},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"appCmd" : "./benchmark_app -m <model_path> -d CPU -t 10",
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=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_OPENVINO_DEBUG=OFF ..",
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=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_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" : {
|
||||
"commitList" : {
|
||||
"getCommitListCmd" : "git log <start_commit>..<end_commit> --boundary --pretty=\"%h\""
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"appCmd" : "./benchmark_app -m <model_path> -d CPU -hint throughput -inference_only=false -t 60",
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=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_OPENVINO_DEBUG=OFF ..",
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=OFF -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=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_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" : {
|
||||
"commitList" : {
|
||||
"getCommitListCmd" : "git log <start_commit>..<end_commit> --boundary --pretty=\"%h\""
|
||||
|
@ -7,7 +7,7 @@
|
||||
{"name" : "MO_ROOT", "val" : "/<ov_path>/tools/mo/openvino/tools/"},
|
||||
{"name" : "OPENVINO_ROOT_DIR", "val" : "/<ov_path>/"}
|
||||
],
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.8 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.8 -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=OFF -DENABLE_MODELS=OFF -DENABLE_SAMPLES=OFF -DENABLE_TESTS=OFF -DENABLE_CPU_DEBUG_CAPS=OFF -DENABLE_HETERO=OFF -DENABLE_TEMPLATE=OFF -DENABLE_CPU_DEBUG_CAPS=OFF -DENABLE_DEBUG_CAPS=OFF -DENABLE_OPENVINO_DEBUG=OFF ..",
|
||||
"makeCmd" : "cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.8 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.8 -DTHREADING=TBB -DENABLE_INTEL_GPU=OFF -DENABLE_INTEL_GNA=OFF -DENABLE_MODELS=OFF -DENABLE_SAMPLES=OFF -DENABLE_TESTS=OFF -DENABLE_CPU_DEBUG_CAPS=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 ..",
|
||||
"runConfig" : {
|
||||
"commitList" : {
|
||||
"getCommitListCmd" : "git log <start_commit>..<end_commit> --boundary --pretty=\"%h\""
|
||||
|
@ -101,10 +101,10 @@ def absolutizePaths(cfg):
|
||||
path = cfg[item]
|
||||
path = os.path.abspath(path)
|
||||
cfg[item] = path
|
||||
if "preprocess" in cfg["runConfig"]:
|
||||
if "preprocess" in cfg["runConfig"] and "file" in cfg["runConfig"]["preprocess"]:
|
||||
prepFile = cfg["runConfig"]["preprocess"]["file"]
|
||||
prepFile = os.path.abspath(prepFile)
|
||||
cfg["runConfig"]["preprocommArgcess"]["file"] = prepFile
|
||||
cfg["runConfig"]["preprocess"]["file"] = prepFile
|
||||
if "envVars" in cfg:
|
||||
updatedEnvVars = []
|
||||
for env in cfg["envVars"]:
|
||||
@ -176,7 +176,7 @@ def runCommandList(commit, cfgData, enforceClean=False):
|
||||
"utils.preprocess.{pp}".format(pp=prePrName)
|
||||
)
|
||||
preProcess = getattr(mod, prePrName)
|
||||
preProcess(cfgData)
|
||||
preProcess(cfgData, commit)
|
||||
continue
|
||||
makeCmd = cfgData["makeCmd"]
|
||||
strCommand = cmd["cmd"].format(commit=commit, makeCmd=makeCmd)
|
||||
|
@ -2,7 +2,7 @@ import re
|
||||
import fileinput
|
||||
|
||||
|
||||
def replace(cfg):
|
||||
def replace(cfg, commit):
|
||||
prepCfg = cfg["runConfig"]["preprocess"]
|
||||
filePath = prepCfg["file"]
|
||||
pattern = prepCfg["pattern"]
|
||||
|
Loading…
Reference in New Issue
Block a user