Implement plan, qpi and metric constructors 99/26599/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 30 Dec 2016 06:08:15 +0000 (14:08 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 3 Jan 2017 10:16:12 +0000 (18:16 +0800)
commitd8c05b528b5a75377848d130286bc997da06a792
treed88f44e3a0d87ffdf64ba20ecf0417e01f63427f
parentdecad5f7fdb212c4f78fc31f00e591eaba104450
Implement plan, qpi and metric constructors

- separate runner from `plan` and move `plan` to `loader`
- rename `algorithm` to `formula`
- use `numpy` for formulas
- update sample qpi and metrics

Change-Id: I3131ca79907376f2de31d6cb920bd7d0230664a6
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
19 files changed:
benchmarks/suite/compute.yaml
qtip/base/constant.py
qtip/base/error.py
qtip/cli/commands/cmd_plan.py
qtip/loader/base.py
qtip/loader/metric.py
qtip/loader/plan.py [moved from qtip/runner/plan.py with 89% similarity]
qtip/loader/qpi.py
qtip/runner/__init__.py
qtip/runner/base.py [deleted file]
qtip/utils/formula.py [new file with mode: 0644]
requirements.txt
tests/conftest.py
tests/data/benchmarks/QPI/compute.yaml
tests/data/benchmarks/QPI/fake-qpi.yaml
tests/data/benchmarks/metric/dhrystone.yaml
tests/data/benchmarks/metric/whetstone.yaml
tests/unit/loader/plan_test.py [moved from tests/unit/runner/plan_test.py with 83% similarity]
tests/unit/loader/qpi_test.py