/[escript]/trunk/escript/py_src/benchmark.py
ViewVC logotype

Diff of /trunk/escript/py_src/benchmark.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 379 by gross, Mon Dec 19 01:10:34 2005 UTC revision 385 by gross, Mon Dec 19 06:12:14 2005 UTC
# Line 202  class Benchmark(object): Line 202  class Benchmark(object):
202               s=scale               s=scale
203            row=[]            row=[]
204            for p in self.__options:            for p in self.__options:
205                os.putenv("OMP_NUM_TREADS",str(s))                os.environ['OMP_NUM_TREADS']=str(s)
206                row.append(r.run(p))                row.append(r.run(p))
207            self.__results.append(row)            self.__results.append(row)
208            c+=1            c+=1
# Line 252  class Benchmark(object): Line 252  class Benchmark(object):
252            for r in range(len(self.__results)):            for r in range(len(self.__results)):
253               out+="<TR><TH ALIGN=\"right\">%s</TH>"%str(self.__problems[r])               out+="<TR><TH ALIGN=\"right\">%s</TH>"%str(self.__problems[r])
254               if isinstance(self.__scale,list): out+="<TD ALIGN=\"right\">%s</TD>"%self.__scale[c]               if isinstance(self.__scale,list): out+="<TD ALIGN=\"right\">%s</TD>"%self.__scale[c]
255               filtered_results=filter(self.__results[r])               for col in self.__results[r]:
256               for col in filtered_results:                     for e in filter(col): out+="<TD ALIGN=\"right\">%s</TD>"%e
                    for e in col: out+="<TD ALIGN=\"right\">%s</TD>"%e  
257               out+="</TR>\n"               out+="</TR>\n"
258                 c+=1
259            out+="</TABLE>"            out+="</TABLE>"
           c+=1  
260         if level==1:         if level==1:
261            out+="<hr><p align=\"center\">by %s at %s</p>\n"%(os.getlogin(),time.strftime('%X %x %Z'))            out+="<hr><p align=\"center\">by %s at %s</p>\n"%(os.getlogin(),time.strftime('%X %x %Z'))
262            out+="</BODY></HTML>\n"            out+="</BODY></HTML>\n"
# Line 355  class Options(object): Line 354  class Options(object):
354         """         """
355         super(Options,self).__init__()         super(Options,self).__init__()
356         if name==None:         if name==None:
357             self.__name=self.__class__.__name__            self.__name=self.__class__.__name__
358         else:         else:
359            self.__name=name            self.__name=name
360      def __str__(self):      def __str__(self):

Legend:
Removed from v.379  
changed lines
  Added in v.385

  ViewVC Help
Powered by ViewVC 1.1.26