From 2fa0b16a19f78edd9fdb287327d4d57cada91507 Mon Sep 17 00:00:00 2001 From: Yifan Zhao <yifanz16@illinois.edu> Date: Sun, 7 Feb 2021 04:08:34 -0600 Subject: [PATCH] Finished piped binary support --- hpvm/projects/predtuner | 2 +- hpvm/test/dnn_benchmarks/pytorch/test_tuning.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hpvm/projects/predtuner b/hpvm/projects/predtuner index 65165fafe9..6ff4237cf4 160000 --- a/hpvm/projects/predtuner +++ b/hpvm/projects/predtuner @@ -1 +1 @@ -Subproject commit 65165fafe9ea011bd172d869ca424d7a4d648a48 +Subproject commit 6ff4237cf4386ebb4fcaeb5e448ef6eac8a41c91 diff --git a/hpvm/test/dnn_benchmarks/pytorch/test_tuning.py b/hpvm/test/dnn_benchmarks/pytorch/test_tuning.py index 34a179b686..32d982187a 100644 --- a/hpvm/test/dnn_benchmarks/pytorch/test_tuning.py +++ b/hpvm/test/dnn_benchmarks/pytorch/test_tuning.py @@ -53,5 +53,7 @@ if not binary_file.is_file() or not metadata_file.is_file(): model, bin_tuneset, bin_testset, codegen_dir, target="hpvm_tensor_inspect" ) exporter.generate(batch_size=batch_size).compile(binary_file, build_dir) -app = PipedBinaryApp("test", codegen_dir, "ops.json", f"build/{pathname}", "hpvm_fifo") -app.measure_qos_perf({}, False) +app = PipedBinaryApp("test", binary_file, metadata_file) +tuner = app.get_tuner() +tuner.tune(100, 3.0, is_threshold_relative=True, perf_model="perf_linear", qos_model="qos_p1") +tuner.dump_configs("configs.json") -- GitLab