- Timestamp:
- Jun 14, 2016, 5:23:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/scripts/create_graph.py
r822 r823 16 16 import filecmp 17 17 import random 18 import math 18 19 19 20 from stack import Stack … … 23 24 24 25 use_rand_images = True 25 with_features = True26 with_features = False 26 27 27 threads = [1, 2, 4] 28 nb_step = 0 28 threads = [1, 2, 4, 8, 16, 32, 64] 29 29 use_dsk = True 30 img_size = 102430 img_size = 2048 31 31 granularity = 1 32 32 rand_seed = 7 … … 42 42 # Each of these configuration must have been run with both features activated and deactivated 43 43 configs = [ 44 {'SLOW':'1', 'FAST':'0', 'PARMERGE':'0', 'ARSP':'0'},45 {'SLOW':'0', 'FAST':'1', 'PARMERGE':'0', 'ARSP':'0'},46 44 #{'SLOW':'1', 'FAST':'0', 'PARMERGE':'0', 'ARSP':'0'}, 47 45 #{'SLOW':'0', 'FAST':'1', 'PARMERGE':'0', 'ARSP':'0'}, 48 46 #{'SLOW':'0', 'FAST':'1', 'PARMERGE':'1', 'ARSP':'0'}, 49 #{'SLOW':'0', 'FAST':'1', 'PARMERGE':'1', 'ARSP':'1'},47 {'SLOW':'0', 'FAST':'1', 'PARMERGE':'1', 'ARSP':'1'}, 50 48 ] 51 49 … … 55 53 code = compile(f.read(), pyconf_file, 'exec') 56 54 exec(code) 55 56 nb_step = 0 57 57 58 58 if use_dsk: … … 125 125 plotter.add_x(X) 126 126 assert(nb_step == 4) 127 YPAR1 = [float( exec_time[fconfig][thread]["NF"][density][0]) for density in range(0, 101)] # Parallel Labeling128 YPAR2 = [float( exec_time[fconfig][thread]["NF"][density][1]) for density in range(0, 101)] # Merging (Parallel or Pyramidal)129 YPTC2 = [float( exec_time[fconfig][thread]["NF"][density][2]) for density in range(0, 101)] # Parallel Transitive Closure130 YPAR3 = [float( exec_time[fconfig][thread]["NF"][density][3]) for density in range(0, 101)] # Parallel Relabeling127 YPAR1 = [float(int(exec_time[fconfig][thread]["NF"][density][0]) / math.pow(img_size, 2)) for density in range(0, 101)] # Parallel Labeling 128 YPAR2 = [float(int(exec_time[fconfig][thread]["NF"][density][1]) / math.pow(img_size, 2)) for density in range(0, 101)] # Merging (Parallel or Pyramidal) 129 YPTC2 = [float(int(exec_time[fconfig][thread]["NF"][density][2]) / math.pow(img_size, 2)) for density in range(0, 101)] # Parallel Transitive Closure 130 YPAR3 = [float(int(exec_time[fconfig][thread]["NF"][density][3]) / math.pow(img_size, 2)) for density in range(0, 101)] # Parallel Relabeling 131 131 132 132 plotter.add_y(YPAR1) … … 136 136 137 137 if with_features: 138 YPAR1f = [float( exec_time[fconfig][thread]["FT"][density][0]) for density in range(0, 101)] # Parallel Labeling139 YPAR2f = [float( exec_time[fconfig][thread]["FT"][density][1]) for density in range(0, 101)] # Merging (Parallel or Pyramidal)138 YPAR1f = [float(int(exec_time[fconfig][thread]["FT"][density][0]) / math.pow(img_size, 2)) for density in range(0, 101)] # Parallel Labeling 139 YPAR2f = [float(int(exec_time[fconfig][thread]["FT"][density][1]) / math.pow(img_size, 2)) for density in range(0, 101)] # Merging (Parallel or Pyramidal) 140 140 deltaYPAR1 = [max(0, x - y) for x, y in zip (YPAR1f, YPAR1)] 141 141 deltaYPAR2 = [max(0, x - y) for x, y in zip (YPAR2f, YPAR2)]
Note: See TracChangeset
for help on using the changeset viewer.