From 1d52149a5e31eede55d99fd01fdc3f2f84bb729b Mon Sep 17 00:00:00 2001
From: Yifan Zhao <yifanz16@illinois.edu>
Date: Thu, 8 Apr 2021 04:37:29 -0500
Subject: [PATCH] Pick up predtuner updates and updated related document

---
 hpvm/docs/components/index.rst                              | 2 +-
 hpvm/docs/components/predtuner.rst                          | 1 -
 hpvm/docs/getting-started.rst                               | 2 +-
 hpvm/projects/predtuner                                     | 2 +-
 hpvm/test/dnn_benchmarks/pytorch/test_tuning/test_tuning.py | 4 ++--
 5 files changed, 5 insertions(+), 6 deletions(-)
 delete mode 120000 hpvm/docs/components/predtuner.rst

diff --git a/hpvm/docs/components/index.rst b/hpvm/docs/components/index.rst
index e911b8473c..96fb35bea6 100644
--- a/hpvm/docs/components/index.rst
+++ b/hpvm/docs/components/index.rst
@@ -33,7 +33,7 @@ which explains their role, usage, and other details.
    keras-support
    keras-benchmarks
    torch2hpvm
-   predtuner
+   Predictive Tuner<https://predtuner.readthedocs.io/en/latest/index.html>
    hpvm-profiler
 
 
diff --git a/hpvm/docs/components/predtuner.rst b/hpvm/docs/components/predtuner.rst
deleted file mode 120000
index cdda0ab7b3..0000000000
--- a/hpvm/docs/components/predtuner.rst
+++ /dev/null
@@ -1 +0,0 @@
-../../projects/predtuner/README.rst
\ No newline at end of file
diff --git a/hpvm/docs/getting-started.rst b/hpvm/docs/getting-started.rst
index a3cd05da83..3fd229086d 100644
--- a/hpvm/docs/getting-started.rst
+++ b/hpvm/docs/getting-started.rst
@@ -188,7 +188,7 @@ After the tuning finishes, the tuner will
 * save the HPVM config format (write-only) at ``./hpvm_confs.txt``.
 
 It is also possible to save the configuration in other formats
-(see the :doc:`predtuner documentation </components/predtuner>`).
+(see the `predtuner documentation <https://predtuner.readthedocs.io/en/latest/index.html>`_).
 
 Profiling the Configurations
 ----------------------------
diff --git a/hpvm/projects/predtuner b/hpvm/projects/predtuner
index 7159825f27..d051790317 160000
--- a/hpvm/projects/predtuner
+++ b/hpvm/projects/predtuner
@@ -1 +1 @@
-Subproject commit 7159825f27ee7b3c5731ee1b9418c6eafda6622a
+Subproject commit d051790317d29a59ca15541d20c1a61318e56932
diff --git a/hpvm/test/dnn_benchmarks/pytorch/test_tuning/test_tuning.py b/hpvm/test/dnn_benchmarks/pytorch/test_tuning/test_tuning.py
index 9f969a4261..d7b693b15b 100755
--- a/hpvm/test/dnn_benchmarks/pytorch/test_tuning/test_tuning.py
+++ b/hpvm/test/dnn_benchmarks/pytorch/test_tuning/test_tuning.py
@@ -24,14 +24,14 @@ def main():
     binary_file, exporter = dnn.export_example_dnn(netname, codegen_dir, True)
     metadata_file = codegen_dir / exporter.metadata_file_name
     # Tuning
-    app = PipedBinaryApp("test", binary_file, metadata_file, tuning_device="cpu")
+    app = PipedBinaryApp("test", binary_file, metadata_file, target_device="cpu")
     tuner = app.get_tuner()
     tuner.tune(
         5,
         3.0,
         is_threshold_relative=True,
         cost_model="cost_linear",
-        qos_model="qos_p1" if is_pred else "none",
+        qos_model="qos_p1" if is_pred else None,
     )
     tuner.dump_configs("configs.json")
     fig = tuner.plot_configs(show_qos_loss=True)
-- 
GitLab