From 02808b3103500d0f797b0ac2c09601d61d0fdfbc Mon Sep 17 00:00:00 2001
From: Maria Kotsifakou <kotsifa2@illinois.edu>
Date: Wed, 13 Nov 2019 12:46:36 -0600
Subject: [PATCH] Bug fix - Changed called function name in online profiling
 for input sampling

---
 .../tensor_runtime/include/approxhpvm_runtime_utils.h       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approxhpvm_runtime_utils.h b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approxhpvm_runtime_utils.h
index 4c2a8b0f80..c166a25db3 100644
--- a/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approxhpvm_runtime_utils.h
+++ b/llvm/projects/hpvm-tensor-rt/tensor_runtime/include/approxhpvm_runtime_utils.h
@@ -184,7 +184,7 @@ void* handleTensorConvApproximationTuples(
               row = 3; col = 1; offset = 2;
               break;
             default:
-              DEBUG("Unsupported Option: Select default, 1-2-1.\n");
+              DEBUG("Unsupported Option: Select default, 1-2-0.\n");
               row = 1; col = 2; offset = 0;
               break;
           }
@@ -242,8 +242,8 @@ void* handleTensorConvApproximationTuples(
           RC->pause_profiler();
           std::pair<double, double> pinfo = RC->get_time_energy();
           RC->reset_profiler();
-          RC->addToCurrentIterationComputeTime("tensorConvSampSim", pinfo.first);
-          RC->addToCurrentIterationComputeEnergy("tensorConvSampSim", pinfo.second);
+          RC->addToCurrentIterationComputeTime("tensorConvInputHalf", pinfo.first);
+          RC->addToCurrentIterationComputeEnergy("tensorConvInputHalf", pinfo.second);
           return t_out;
         }
       default :
-- 
GitLab