diff --git a/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp b/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp index d25a76153f1564ce53d6d5820402eb5ec85872ad..db1c5ebcb143fb0db3ebb945d9f0372608a174ec 100644 --- a/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp +++ b/hpvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp @@ -17,7 +17,6 @@ #define llvm_hpvm_invokeRtControl_BASE llvm_hpvm_invokeRtControl //#define llvm_hpvm_invokeRtControl_ADJUST_PR llvm_hpvm_invokeRtControl -//#define llvm_hpvm_invokeRtControl_ITERATE llvm_hpvm_invokeRtControl @@ -1288,37 +1287,6 @@ extern "C" void llvm_hpvm_invokeRtControl_BASE(void *result, const char *str, RC->end_iteration(); } -extern "C" void llvm_hpvm_invokeRtControl_ITERATE(void *result, const char *str, - int start, int end) { - - uint32_t *labels_cached = hpvm_rt_readLabelsBatch_cached(str, start, end); - hpvm_rt_computeAccuracy3(labels_cached, result); - - // Read stats for iteration that was just completed - double current_iteration_time = RC->getCurrentIterationComputeTime(); - double current_iteration_energy = RC->getCurrentIterationComputeEnergy(); - - RC->resume_profiler(); - RC->findNextConfiguration(); - // Still use findNext configuration, to update the configurationIdx, - // to point to next location - enum SEARCH_KIND k = ACCURACY_LOSS; - float goalVal = - RC->getSpeedupConfigurations()[RC->getConfigurationIdx()]->accuracyLoss; - RC->findTargetConfiguration(goalVal, k); - - RC->pause_profiler(); - std::pair<double, double> pinfo = RC->get_time_energy(); - RC->reset_profiler(); - RC->addToCurrentIterationControlTime(pinfo.first); - RC->addToCurrentIterationControlEnergy(pinfo.second); - - INFO("current iteration time = %f, current iteration energy = %f\n\n", - current_iteration_time, current_iteration_energy); - - // Note the end of iteration - RC->end_iteration(); -} extern "C" void llvm_hpvm_invokeRtControl_ADJUST(void *result, const char *str, int start, int end) {