/[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 390 by gross, Tue Dec 20 03:39:24 2005 UTC revision 393 by gross, Tue Dec 20 05:40:43 2005 UTC
# Line 27  __version__="$Revision:$" Line 27  __version__="$Revision:$"
27  __date__="$Date:$"  __date__="$Date:$"
28    
29  import os,socket,time,sys  import os,socket,time,sys
30    from esys.escript import setNumberOfThreads
31    
32  class BenchmarkSuite(object):  class BenchmarkSuite(object):
33     """     """
# Line 207  class Benchmark(object): Line 208  class Benchmark(object):
208            row=[]            row=[]
209            if s>0:            if s>0:
210                for p in self.__options:                for p in self.__options:
211                    os.environ['OMP_NUM_THREADS']=str(s)                    setNumberOfThreads(s)
212                    row.append(r.run(p))                    row.append(r.run(p))
213            self.__results.append(row)            self.__results.append(row)
214     def getHTML(self,filter,level=1):     def getHTML(self,filter,level=1):

Legend:
Removed from v.390  
changed lines
  Added in v.393

  ViewVC Help
Powered by ViewVC 1.1.26