From 33230e451fa11557f924ca6b8a9c2493a3df3219 Mon Sep 17 00:00:00 2001 From: wangqingzheng Date: Fri, 23 Feb 2024 15:48:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0cpu2006-loongarch64=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yaml-base/cpu2006-loongarch64-base.yaml | 102 ++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 yaml-base/cpu2006-loongarch64-base.yaml diff --git a/yaml-base/cpu2006-loongarch64-base.yaml b/yaml-base/cpu2006-loongarch64-base.yaml new file mode 100644 index 0000000..bad648d --- /dev/null +++ b/yaml-base/cpu2006-loongarch64-base.yaml @@ -0,0 +1,102 @@ +project: "cpu2006-1.2-lg64" # 工程名称 +test_type: "speccpu2006" +# base_path: "/root/kytuning/run/cpu2006" +log_file: "{base_path}/kytuning.log" +log_level: "debug" + +tool_tgz: "{base_path}/tools/cpu2006-1.2-lg64.tar.gz" +tool_dir: "{base_path}/cpu2006-1.2" + +## python在进行字符串格式化时,{}需要转义处理,转义方式为{{}} +tool_decompression: "tar -xvf {tool_tgz} -C {base_path} && sed -i '/^makeflags/{{N;/mean_anyway/!s/\\n/\\nmean_anyway=1\\n/}}' {tool_dir}/config/loongarch64-fix.cfg" + + +maxiterations: 1 + + +# rpm_list: +# - "numactl" +# - "jemalloc" + +# configs: +# - name: "vm.swappiness" +# desc: "the vm.swapiness" +# get : "sysctl -a | grep vm.swappiness | awk '{print $3}'" +# set : "sysctl -w vm.swappiness={value}" +# value: 20 + +testcase: + - name: "base-single-int" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + relocate \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "loongarch64-fix.cfg", basepeak: "base", FUNC_THREAD_NUM: "single", intfp: "int"} + schemeflag: 0 + # configs: + # - name: "kernel.sched_migration_cost_ns" + # desc: "context switch" + # get : "sysctl -n kernel.sched_migration_cost_ns" + # set : "sysctl -n kernel.sched_migration_cost_ns={value}" + # type: "continuous" + # values: + # - 100000 + # - 500000 + # - 100000 + # items: + + - name: "base-single-fp" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + relocate \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "loongarch64-fix.cfg", basepeak: "base", FUNC_THREAD_NUM: "single", intfp: "fp"} + schemeflag: 0 + + - name: "base-multi-int" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + relocate \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "loongarch64-fix.cfg", basepeak: "base", FUNC_THREAD_NUM: "multi", intfp: "int"} + schemeflag: 0 + + - name: "base-multi-fp" + clean: "" + build: "" + run: + pre_cmd: ". ./shrc \n + relocate \n + runspec -V \n + if [ $? -ne 0 ]; then \n + echo \"Failed to run runspec -V\" \n + exit 1 \n + fi \n + {command}" + command: "runspec -c {FUNC_CPU2006_CONFIG} --tune={basepeak} --action=run -n 1 --rate={FUNC_THREAD_NUM} --size=ref --noreportable {intfp}" + c_param: {FUNC_CPU2006_CONFIG: "loongarch64-fix.cfg", basepeak: "base", FUNC_THREAD_NUM: "multi", intfp: "fp"} + schemeflag: 0 -- Gitee