Lines Matching +full:not +full:- +full:for +full:- +full:context
32 for x in it:
50 parser.add_argument('-b', nargs='?',type = str, default="bench.db", help="Database")
51 parser.add_argument('-o', nargs='?',type = str, default="full.md", help="Full summary")
52 parser.add_argument('-r', action='store_true', help="Regression database")
53 parser.add_argument('-t', nargs='?',type = str, default="md", help="type md or html")
54 parser.add_argument('-byc', action='store_true', help="Result oganized by Compiler")
55 parser.add_argument('-g', action='store_true', help="Include graphs in regression report")
57 parser.add_argument('-details', action='store_true', help="Details about runids")
58 parser.add_argument('-lastid', action='store_true', help="Get last ID")
59 parser.add_argument('-comments', nargs='?',type = str, default="comments", help="Comment folder")
60 parser.add_argument('-byd', action='store_true', help="Result oganized by datatype")
61 parser.add_argument('-ratio', action='store_true', help="Compute ratios for regression by core inst…
62 parser.add_argument('-ref', nargs='?',type = str, default="M55", help="Reference COREDEF for ratio …
63 parser.add_argument('-clampval', nargs='?',type = float, default=8.0, help="Clamp for ratio")
64 parser.add_argument('-clamp', action='store_true', help="Clamp enabled for ratio")
65 parser.add_argument('-cores', nargs='?',type = str, help="Cores to keep")
66 parser.add_argument('-toc', nargs='?',type = str, help="Yaml for the table of contents")
68 # For runid or runid range
88 # parameters are not allowed in VIEWs
90 for t in o:
91 if re.search(r'-',t):
92 bounds=[int(x) for x in t.split("-")]
125 coreids = [str(getCoreID(x.strip())) for x in cores]
137 # Those tables below are used for descriptions
141 # So platform is the same for all benchmarks.
153 for table in r:
154 if not table[0] in REMOVETABLES:
161 result=[x[0] for x in r]
167 result=[x[0] for x in r]
173 for table in tables:
174 r += [x[0] for x in c.execute(runIDDetails % (table,runidCMD),runidval).fetchall()]
201 # Get existing compiler in a table for a specific type
205 return([x[0] for x in r])
208 # Get existing compiler in a table for a specific core
212 return([x[0] for x in r])
217 return([x[0] for x in r])
237 return [item for item in first if item not in second]
240 # Command to get data for specific compiler
253 # Command to get data for specific core
263 WHERE compilerid=? AND coreid=? AND typeid = ? AND ID = ? AND runid > (? - 10)
269 WHERE coreid=? AND typeid = ? AND ID = ? AND runid > (? - 10)
272 # Command to get data for specific core
287 WHERE compilerid=? AND typeid = ? AND ID = ? AND runid > (? - 10)
290 # Command to get data for specific compiler
303 # Command to get test names for specific compiler
313 # Command to get test names for specific core
323 # Command to get test names for specific compiler
333 # Command to get columns for specific table
347 for x in it:
351 # Is not a column name finishing by id
352 # (often primary key for thetable)
360 # for specific core and compiler (for the data)
364 names=[x[0] for x in list(result)]
368 # for specific typeid and core (for the data)
372 names=[x[0] for x in list(result)]
376 # for specific typeid and compiler (for the data)
380 names=[x[0] for x in list(result)]
383 # Command to get data for specific core
389 # Command to get data for specific compiler
395 # Command to get data for specific compiler
453 # Get names of columns and data for a table
454 # for specific typeid and coreid (for the data)
458 cols= [member[0] for member in cursor.description]
459 keepCols = ['name'] + [c for c in diff(cols , REMOVECOLUMNSFORHISTORY) if isNotIDColumn(c)]
463 vals =np.array([list(x) for x in list(result)])
466 # Get names of columns and data for a table
467 # for specific typeid and coreid (for the data)
471 cols= [member[0] for member in cursor.description]
472 keepCols = ['name'] + [c for c in diff(cols , REMOVECOLUMNS) if isNotIDColumn(c)]
476 vals =np.array([list(x) for x in list(result)])
479 # Get names of columns and data for a table
480 # for specific coreid and compilerid (for the data)
484 cols= [member[0] for member in cursor.description]
485 keepCols = ['name','type'] + [c for c in diff(cols , REMOVECOLUMNS) if isNotIDColumn(c)]
489 vals =np.array([list(x) for x in list(result)])
492 # Get names of columns and data for a table
493 # for specific typeid and compiler (for the data)
497 cols= [member[0] for member in cursor.description]
498 keepCols = ['name'] + [c for c in diff(cols , REMOVECOLUMNS) if isNotIDColumn(c)]
502 vals =np.array([list(x) for x in list(result)])
507 for t in s:
523 cores = [(c[1] + ":" + c[2]) for c in list(data.columns)]
525 cores = [c[1] for c in list(data.columns)]
536 for row in dataForFunc.itertuples():
561 ids=[(x[0],x[1]) for x in list(result)]
567 ids=[(x[0],x[1],x[2]) for x in list(result)]
583 for compilerid,compilername,version in compilerids:
588 r=[[int(x[lrunid]),int(x[maxpos])] for x in result[1:][0]]
596 for coreid,corename in coreids:
602 r=[[int(x[lrunid]),int(x[maxpos])] for x in result[1:][0]]
609 for e in r:
627 for l in r:
642 for param in PARAMS:
661 for name in testNames:
674 for bar in theCycles['data']:
677 title=[("%s=%s" % x) for x in list(zip(theCycles['cols'],params))]
719 columnsID = [formatColumnName(c[1:]) for c in list(dataForFunc.columns)]
727 for row in dataForFunc.itertuples():
742 refCore="""CREATE TEMP VIEW if not exists refCore AS
748 otherCore="""CREATE TEMP VIEW if not exists otherCore AS
753 refCoreAllTypes="""CREATE TEMP VIEW if not exists refCore AS
758 otherCoreAllTypes="""CREATE TEMP VIEW if not exists otherCore AS
808 cols= [member[0] for member in cursor.description]
810 for x in cols:
820 paramsnames = ["refCore.%s as %s" % (x,x) for x in params]
821 paramseq = ["refCore.%s = otherCore.%s" % (x,x) for x in params]
823 cols = ["%s" % x for x in params]
847 testNames=[x[0] for x in testNames]
859 # Compute for all core for a given type
881 for t in s:
900 for param in PARAMS:
905 for name in testNames:
920 values=["ratio"], aggfunc='first',fill_value=-1.0)
930 cores = [c[1] for c in list(data.columns)]
935 if type(dataForFunc) is not pd.DataFrame:
947 for row in dataForFunc.itertuples():
960 # Add a report for each table
975 for aCoreID in allCores:
982 for compiler in allCompilers:
998 # Print test results for table, type, compiler
1011 # Add report for each type
1012 for aTypeID in allTypes:
1019 ## Add report for each core
1021 for core in allCores:
1024 # Print test results for table, type, compiler
1035 for compiler in allCompilers:
1047 ## Add report for each compiler
1049 for compiler in allCompilers:
1052 # Print test results for table, type, compiler
1098 section=Section("Measurement Context")
1104 for l in r:
1114 section.addContent(Text("Reference core for the ratio is %s" % refCoreName))
1120 for k in d:
1121 if d[k] is not None:
1132 for s in sections:
1163 for bench in remaining:
1166 #for bench in benchtables: