Commit e38a0246 authored by iker_martin's avatar iker_martin
Browse files

Modificado analisis para tener en cuenta creacion de hilos

parent dd4bd4aa
...@@ -61,7 +61,7 @@ def read_file(f, dataA, dataB, it): ...@@ -61,7 +61,7 @@ def read_file(f, dataA, dataB, it):
recording = True recording = True
it += 1 it += 1
dataA.append([None]*9) dataA.append([None]*9)
dataB.append([None]*12) dataB.append([None]*13)
resizes = int(lineS[2].split('=')[1].split(',')[0]) resizes = int(lineS[2].split('=')[1].split(',')[0])
compute_tam = int(lineS[3].split('=')[1].split(',')[0]) compute_tam = int(lineS[3].split('=')[1].split(',')[0])
comm_tam = int(lineS[4].split('=')[1].split(',')[0]) comm_tam = int(lineS[4].split('=')[1].split(',')[0])
...@@ -100,7 +100,7 @@ def read_file(f, dataA, dataB, it): ...@@ -100,7 +100,7 @@ def read_file(f, dataA, dataB, it):
dataA[it][2] = str(previousNP) + "," + str(npr) dataA[it][2] = str(previousNP) + "," + str(npr)
dataA[it][3] += dist dataA[it][3] += dist
dataA[it][7] += str(iters) dataA[it][7] += str(iters)
timer = 3 timer = 4
else: else:
dataB[it][2] = npr dataB[it][2] = npr
dataB[it][4] += dist + "," dataB[it][4] += dist + ","
...@@ -111,19 +111,21 @@ def read_file(f, dataA, dataB, it): ...@@ -111,19 +111,21 @@ def read_file(f, dataA, dataB, it):
previousNP = npr previousNP = npr
else: # SAVE TIMES else: # SAVE TIMES
if timer == 3: if timer == 4:
dataB[it][9] = float(lineS[1]) dataB[it][9] = float(lineS[1])
elif timer == 2: elif timer == 3:
dataB[it][10] = float(lineS[1]) dataB[it][10] = float(lineS[1])
elif timer == 1: elif timer == 2:
dataB[it][11] = float(lineS[1]) dataB[it][11] = float(lineS[1])
elif timer == 1:
dataB[it][12] = float(lineS[1])
else: else:
dataA[it][8] = float(lineS[1]) dataA[it][8] = float(lineS[1])
timer = timer - 1 timer = timer - 1
return it return it
#columnsA1 = ["N", "%Async", "Groups", "Dist", "Matrix", "CommTam", "Time", "Iters", "TE"] #8 #columnsA1 = ["N", "%Async", "Groups", "Dist", "Matrix", "CommTam", "Time", "Iters", "TE"] #8
#columnsB1 = ["N", "%Async", "NP", "NS", "Dist", "Matrix", "CommTam", "Time", "Iters", "TC", "TS", "TA"] #11 #columnsB1 = ["N", "%Async", "NP", "NS", "Dist", "Matrix", "CommTam", "Time", "Iters", "TC", "TS", "TA"] #12
#Config loaded: resizes=2, matrix=1000, sdr=1000000000, adr=0, aib=0, time=2.000000 || grp=1 #Config loaded: resizes=2, matrix=1000, sdr=1000000000, adr=0, aib=0, time=2.000000 || grp=1
#Resize 0: Iters=100, Procs=2, Factors=1.000000, Phy=2 #Resize 0: Iters=100, Procs=2, Factors=1.000000, Phy=2
#Resize 1: Iters=100, Procs=4, Factors=0.500000, Phy=2 #Resize 1: Iters=100, Procs=4, Factors=0.500000, Phy=2
...@@ -156,8 +158,8 @@ print("Number of files found: "+ str(len(lista))); ...@@ -156,8 +158,8 @@ print("Number of files found: "+ str(len(lista)));
it = -1 it = -1
dataA = [] dataA = []
dataB = [] dataB = []
columnsA = ["N", "%Async", "Groups", "Dist", "Matrix", "CommTam", "Time", "Iters", "TE"] #8 columnsA = ["N", "%Async", "Groups", "Dist", "Matrix", "CommTam", "Time", "Iters", "TE"] #9
columnsB = ["N", "%Async", "NP", "NS", "Dist", "Matrix", "CommTam", "Time", "Iters", "TC", "TS", "TA"] #11 columnsB = ["N", "%Async", "NP", "NS", "Dist", "Matrix", "CommTam", "Time", "Iters", "TC", "TH", "TS", "TA"] #13
for elem in lista: for elem in lista:
f = open(elem, "r") f = open(elem, "r")
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment