From a339f4b6bc6cef46371c0e80ca76514b30e76771 Mon Sep 17 00:00:00 2001 From: Elizabeth <hashim.sharif91@gmail.com> Date: Wed, 9 Oct 2019 15:07:37 -0500 Subject: [PATCH] Fixed string/int addition bug --- llvm/projects/soc_simulator/src/driver.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/projects/soc_simulator/src/driver.py b/llvm/projects/soc_simulator/src/driver.py index 4018477ac7..d76dbb5150 100644 --- a/llvm/projects/soc_simulator/src/driver.py +++ b/llvm/projects/soc_simulator/src/driver.py @@ -1,5 +1,3 @@ -# Python driver -- ported from Perl driver (driver.pl) - from collections import defaultdict import os import subprocess @@ -174,7 +172,7 @@ def run_promise_simulation(swing, layer_data): total_time_energy = output.strip().split(',') assert(len(total_time_energy) == 2) - return total_time_energy[0], total_time_energy[1] + return float(total_time_energy[0]), float(total_time_energy[1]) def run_gpu_simulation(curr_layer, layer_name, tensor_ind): @@ -255,4 +253,4 @@ if __name__ == "__main__": ''' parse_tensor_layer_file("/home/nvidia/Gitlab/hpvm/llvm/projects/hpvm-tensor-rt/build_mobilenet/mobilenet_layers.txt") parse_tensor_table("/home/nvidia/Gitlab/hpvm/llvm/projects/hpvm-tensor-rt/build_pldi/mobilenet_results/mobilenet_tensors.txt") - run_simulations("/home/nvidia/Gitlab/hpvm/llvm/projects/soc_simulator/pipeline_GEMO/pipeline_GEMO_promise_confs1.txt", "blah") + run_simulations("/home/nvidia/Gitlab/hpvm/llvm/projects/hpvm-tensor-rt/build_mobilenet/mobilenet_conf2.txt", "blah") -- GitLab