Skip to content
Snippets Groups Projects
Commit a339f4b6 authored by Elizabeth's avatar Elizabeth
Browse files

Fixed string/int addition bug

parent b958d6db
No related branches found
No related tags found
No related merge requests found
# 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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment