Lines Matching +full:for +full:- +full:compiler

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
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
138 REMOVETABLES=['TESTNAME','TESTDATE','RUN','CORE', 'PLATFORM', 'COMPILERKIND', 'COMPILER', 'TYPE', '…
141 # So platform is the same for all benchmarks.
153 for table in r:
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()]
196 compilerDesc="""select compiler,version from COMPILER
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
246 INNER JOIN COMPILER USING(compilerid)
253 # Command to get data for specific core
259 INNER JOIN COMPILER USING(compilerid)
263 WHERE compilerid=? AND coreid=? AND typeid = ? AND ID = ? AND runid > (? - 10)
266 compilersForHistory="""select distinct compilerid,compiler,version from %s
267 INNER JOIN COMPILER USING(compilerid)
269 WHERE coreid=? AND typeid = ? AND ID = ? AND runid > (? - 10)
272 # Command to get data for specific core
278 INNER JOIN COMPILER USING(compilerid)
287 WHERE compilerid=? AND typeid = ? AND ID = ? AND runid > (? - 10)
290 # Command to get data for specific compiler
296 INNER JOIN COMPILER USING(compilerid)
303 # Command to get test names for specific compiler
306 INNER JOIN COMPILER USING(compilerid)
313 # Command to get test names for specific core
314 # and compiler
316 INNER JOIN COMPILER USING(compilerid)
323 # Command to get test names for specific compiler
326 INNER JOIN COMPILER USING(compilerid)
333 # Command to get columns for specific table
338 INNER JOIN COMPILER USING(compilerid)
347 for x in it:
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)
455 def getColNamesAndHistory(benchTable,compiler,core,typeid,testid): argument
458 cols= [member[0] for member in cursor.description]
459 keepCols = ['name'] + [c for c in diff(cols , REMOVECOLUMNSFORHISTORY) if isNotIDColumn(c)]
461 vals=(compiler,core,typeid,testid,runid)
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():
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
860 def computeRatioTable(benchName,referenceCore,typeID,compiler): argument
861 viewParams = (benchName,referenceCore,typeID,runidVIEWcmd,compiler)
863 otherParams = (benchName,typeID,runidVIEWcmd,compiler)
870 def computeRatioTableForCore(benchName,referenceCore,otherCoreID,compiler): argument
871 viewParams = (benchName,referenceCore,runidVIEWcmd,compiler)
873 otherParams = (benchName,otherCoreID,runidVIEWcmd,compiler)
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)]
947 for row in dataForFunc.itertuples():
960 # Add a report for each table
975 for aCoreID in allCores:
982 for compiler in allCompilers:
983 #print(compiler)
985 … cols,params,ratios,testNames=computeRatioTableForCore(benchName,referenceCoreID,aCoreID,compiler)
990 compilerName,version=getCompilerDesc(compiler)
996 nbElems = getNbElemsInBenchAndCoreAndCompilerCmd(benchName,compiler,aCoreID)
998 # Print test results for table, type, compiler
1000 compilerName,version=getCompilerDesc(compiler)
1003 cols,vals=getColNamesAndDataForCoreCompiler(benchName,compiler,aCoreID)
1004 desc=(benchName,compiler,aCoreID)
1005 names=getTestNamesForCoreCompiler(benchName,compiler,aCoreID)
1007 … formatTableBy(desc,['type'],['core','version','compiler'],compilerSection,names,cols,vals)
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
1032 … formatTableBy(desc,['compiler','version'],['core'],coreSection,names,cols,vals)
1035 for compiler in allCompilers:
1036 … cols,params,ratios,testNames=computeRatioTable(benchName,referenceCoreID,aTypeID,compiler)
1041 compilerName,version=getCompilerDesc(compiler)
1047 ## Add report for each compiler
1049 for compiler in allCompilers:
1050 #print(compiler)
1051 nbElems = getNbElemsInBenchAndTypeAndCompilerCmd(benchName,compiler,aTypeID)
1052 # Print test results for table, type, compiler
1054 compilerName,version=getCompilerDesc(compiler)
1057 cols,vals=getColNamesAndDataForCompiler(benchName,compiler,aTypeID)
1058 desc=(benchName,compiler,aTypeID)
1059 names=getTestNamesForCompiler(benchName,compiler,aTypeID)
1060 … formatTableBy(desc,['core'],['version','compiler'],compilerSection,names,cols,vals)
1104 for l in r:
1114 section.addContent(Text("Reference core for the ratio is %s" % refCoreName))
1120 for k in d:
1132 for s in sections:
1163 for bench in remaining:
1166 #for bench in benchtables: