From ae737028f12e9a9a434b03f2d74f50903b5e78f2 Mon Sep 17 00:00:00 2001 From: Elizabeth <hashim.sharif91@gmail.com> Date: Tue, 19 Nov 2019 16:46:04 -0600 Subject: [PATCH] Added debug output --- .../src/driver_new_config_fp16_repl.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/llvm/projects/soc_simulator/src/driver_new_config_fp16_repl.py b/llvm/projects/soc_simulator/src/driver_new_config_fp16_repl.py index d3fb690d76..8d7c6ee83c 100644 --- a/llvm/projects/soc_simulator/src/driver_new_config_fp16_repl.py +++ b/llvm/projects/soc_simulator/src/driver_new_config_fp16_repl.py @@ -454,12 +454,12 @@ class Driver: final_tensor_op = tensor_op if op_time > baseline_time: - print("**************** BIGGER ******************") - if tensor_op.find("promise") != -1: - print("WARNING: PROMISE") - print(curr_conf_name) - print(baseline_time, baseline_energy, baseline_op, layer_ind) - print(op_time, tensor_op, layer_ind) + #print("**************** BIGGER ******************") + #if tensor_op.find("promise") != -1: + # print("WARNING: PROMISE") + #print(curr_conf_name) + #print(baseline_time, baseline_energy, baseline_op, layer_ind) + #print(op_time, tensor_op, layer_ind) final_time += baseline_time final_energy += baseline_energy final_tensor_op = baseline_op @@ -486,9 +486,8 @@ class Driver: write_conf_to_file(conf_name, baseline_conf, 1, 1) else: curr_conf = self.__conf_results[conf_index] #conf_name] - final_time, final_energy, = get_baseline_times_energies(curr_conf) - print("Baseline time: %f, final time: %f, baseline energy: %f, final energy: %f" % (baseline_total_time, final_time, baseline_total_energy, final_energy)) - #final_time, final_energy, curr_conf = get_final_times_energies_conf(curr_conf, conf_name) + final_time, final_energy, curr_conf = get_final_times_energies_conf(curr_conf, conf_name) + print("Baseline time: %f, final time: %f, baseline energy: %f, final energy: %f, rations: %f %f " % (baseline_total_time, final_time, baseline_total_energy, final_energy, baseline_total_time / final_time, baseline_total_energy / final_energy)) write_conf_to_file(conf_name, curr_conf, baseline_total_time / final_time, baseline_total_energy / final_energy) conf_index += 1 results_file.close() -- GitLab