/[escript]/trunk/finley/test/python/runbenchmark.py
ViewVC logotype

Annotation of /trunk/finley/test/python/runbenchmark.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 416 - (hide annotations)
Wed Jan 4 05:38:35 2006 UTC (13 years, 7 months ago) by gross
File MIME type: text/x-python
File size: 9187 byte(s)
changes in Paso have been worked in
1 gross 382 #/usr/bin/python
2     # $Id:$
3    
4     #
5     # COPYRIGHT ACcESS 2004 - All Rights Reserved
6     #
7     # This software is the property of ACcESS. No part of this code
8     # may be copied in any form or by any means without the expressed written
9     # consent of ACcESS. Copying, use or modification of this software
10     # by any unauthorised person is illegal unless that
11     # person has a software license agreement with ACcESS.
12     #
13    
14     """
15 gross 416 some benchmarks for tetsing the finley solver.
16 gross 382
17     @var __author__: name of author
18     @var __licence__: licence agreement
19     var __url__: url entry point on documentation
20     @var __version__: version
21     @var __date__: date of the version
22     """
23    
24     __author__="Lutz Gross, l.gross@uq.edu.au"
25     __licence__="contact: esys@access.uq.edu.au"
26     __url__="http://www.iservo.edu.au/esys/escript"
27     __version__="$Revision:$"
28     __date__="$Date:$"
29    
30     from esys.finley.finleybench import *
31     from esys.escript.benchmark import BenchmarkSuite,Benchmark
32    
33 gross 416 thlist=[1,2,4,8,16]
34     # thlist=[1,2,4,8,16,32]
35 gross 388 # thlist=[1,2,4,8,16,32,64,128]
36     # thlist=[1,2,4,8,16,32,64,128]
37 gross 416 show=False
38 gross 382 ff=FinleyFilter()
39    
40     opt1=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.JACOBI,verbose=show)
41     opt2=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.ILU0,verbose=show)
42 gross 416 opt3=FinleyOptions(solver_method=LinearPDE.DIRECT,verbose=show)
43 gross 382
44     bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")
45     bm_L2Do1.addProblem(Laplace2DOrder1_30k())
46     bm_L2Do1.addProblem(Laplace2DOrder1_60k())
47 gross 388 bm_L2Do1.addProblem(Laplace2DOrder1_120k())
48     bm_L2Do1.addProblem(Laplace2DOrder1_240k())
49     bm_L2Do1.addProblem(Laplace2DOrder1_480k())
50     bm_L2Do1.addProblem(Laplace2DOrder1_960k())
51     bm_L2Do1.addProblem(Laplace2DOrder1_1920k())
52     bm_L2Do1.addProblem(Laplace2DOrder1_3840k())
53     bm_L2Do1.addProblem(Laplace2DOrder1_7680k())
54     bm_L2Do1.addProblem(Laplace2DOrder1_15360k())
55 gross 382 bm_L2Do1.addOptions(opt1)
56     bm_L2Do1.addOptions(opt2)
57 gross 416 bm_L2Do1.addOptions(opt3)
58 gross 382
59     bm_L2Do2=Benchmark("Laplace 2D (order 2)")
60     bm_L2Do2.addProblem(Laplace2DOrder2_30k())
61     bm_L2Do2.addProblem(Laplace2DOrder2_60k())
62 gross 388 bm_L2Do2.addProblem(Laplace2DOrder2_120k())
63     bm_L2Do2.addProblem(Laplace2DOrder2_240k())
64     bm_L2Do2.addProblem(Laplace2DOrder2_480k())
65     bm_L2Do2.addProblem(Laplace2DOrder2_960k())
66     bm_L2Do2.addProblem(Laplace2DOrder2_1920k())
67     bm_L2Do2.addProblem(Laplace2DOrder2_3840k())
68     bm_L2Do2.addProblem(Laplace2DOrder2_7680k())
69     bm_L2Do2.addProblem(Laplace2DOrder2_15360k())
70 gross 382 bm_L2Do2.addOptions(opt1)
71     bm_L2Do2.addOptions(opt2)
72 gross 416 bm_L2Do2.addOptions(opt3)
73 gross 382
74 gross 388 bm_L3Do1=Benchmark("Laplace 3D (order 1)")
75     bm_L3Do1.addProblem(Laplace3DOrder1_30k())
76     bm_L3Do1.addProblem(Laplace3DOrder1_60k())
77     bm_L3Do1.addProblem(Laplace3DOrder1_120k())
78     bm_L3Do1.addProblem(Laplace3DOrder1_240k())
79     bm_L3Do1.addProblem(Laplace3DOrder1_480k())
80     bm_L3Do1.addProblem(Laplace3DOrder1_960k())
81     bm_L3Do1.addProblem(Laplace3DOrder1_1920k())
82     bm_L3Do1.addProblem(Laplace3DOrder1_3840k())
83     bm_L3Do1.addProblem(Laplace3DOrder1_7680k())
84     bm_L3Do1.addProblem(Laplace3DOrder1_15360k())
85     bm_L3Do1.addOptions(opt1)
86     bm_L3Do1.addOptions(opt2)
87 gross 416 bm_L3Do1.addOptions(opt3)
88 gross 382
89 gross 388 bm_L3Do2=Benchmark("Laplace 3D (order 2)")
90     bm_L3Do2.addProblem(Laplace3DOrder2_30k())
91     bm_L3Do2.addProblem(Laplace3DOrder2_60k())
92     bm_L3Do2.addProblem(Laplace3DOrder2_120k())
93     bm_L3Do2.addProblem(Laplace3DOrder2_240k())
94     bm_L3Do2.addProblem(Laplace3DOrder2_480k())
95     bm_L3Do2.addProblem(Laplace3DOrder2_960k())
96     bm_L3Do2.addProblem(Laplace3DOrder2_1920k())
97     bm_L3Do2.addProblem(Laplace3DOrder2_3840k())
98     bm_L3Do2.addProblem(Laplace3DOrder2_7680k())
99     bm_L3Do2.addProblem(Laplace3DOrder2_15360k())
100     bm_L3Do2.addOptions(opt1)
101     bm_L3Do2.addOptions(opt2)
102 gross 416 bm_L3Do2.addOptions(opt3)
103 gross 388
104 gross 416 bm_A2Do1g30=Benchmark("Anisotropic 2D (gamma=30, order=1)")
105     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_30k())
106     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_60k())
107     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_120k())
108     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_240k())
109     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_480k())
110     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_960k())
111     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_1920k())
112     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_3840k())
113     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_7680k())
114     bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_15360k())
115 gross 388
116 gross 416 bm_A2Do1g45=Benchmark("Anisotropic 2D (gamma=45, order=1)")
117     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_30k())
118     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_60k())
119     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_120k())
120     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_240k())
121     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_480k())
122     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_960k())
123     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_1920k())
124     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_3840k())
125     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_7680k())
126     bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_15360k())
127 gross 388
128 gross 416 bm_A2Do2g30=Benchmark("Anisotropic 2D (gamma=30, order=2)")
129     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_30k())
130     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_60k())
131     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_120k())
132     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_240k())
133     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_480k())
134     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_960k())
135     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_1920k())
136     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_3840k())
137     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_7680k())
138     bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_15360k())
139    
140    
141     bm_A2Do2g45=Benchmark("Anisotropic 2D (gamma=45, order=2)")
142     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_30k())
143     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_60k())
144     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_120k())
145     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_240k())
146     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_480k())
147     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_960k())
148     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_1920k())
149     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_3840k())
150     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_7680k())
151     bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_15360k())
152    
153    
154     bm_A3Do1g30=Benchmark("Anisotropic 3D (gamma=30, order=1)")
155     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_30k())
156     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_60k())
157     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_120k())
158     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_240k())
159     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_480k())
160     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_960k())
161     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_1920k())
162     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_3840k())
163     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_7680k())
164     bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_15360k())
165    
166     bm_A3Do1g45=Benchmark("Anisotropic 3D (gamma=45, order=1)")
167     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_30k())
168     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_60k())
169     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_120k())
170     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_240k())
171     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_480k())
172     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_960k())
173     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_1920k())
174     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_3840k())
175     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_7680k())
176     bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_15360k())
177    
178     bm_A3Do2g30=Benchmark("Anisotropic 3D (gamma=30, order=2)")
179     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_30k())
180     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_60k())
181     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_120k())
182     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_240k())
183     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_480k())
184     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_960k())
185     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_1920k())
186     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_3840k())
187     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_7680k())
188     bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_15360k())
189    
190     bm_A3Do2g45=Benchmark("Anisotropic 3D (gamma=45, order=2)")
191     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_30k())
192     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_60k())
193     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_120k())
194     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_240k())
195     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_480k())
196     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_960k())
197     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_1920k())
198     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_3840k())
199     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_7680k())
200     bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_15360k())
201    
202    
203 gross 382 bms=BenchmarkSuite("Paso/Finley")
204     bms.addBenchmark(bm_L2Do1)
205     bms.addBenchmark(bm_L2Do2)
206 gross 388 bms.addBenchmark(bm_L3Do1)
207     bms.addBenchmark(bm_L3Do2)
208 gross 416 # bms.addBenchmark(bm_A2Do1g30)
209     # bms.addBenchmark(bm_A2Do1g45)
210     # bms.addBenchmark(bm_A2Do2g30)
211     # bms.addBenchmark(bm_A2Do2g45)
212     # bms.addBenchmark(bm_A3Do1g30)
213     # bms.addBenchmark(bm_A3Do1g45)
214     # bms.addBenchmark(bm_A3Do2g30)
215     # bms.addBenchmark(bm_A3Do2g45)
216 gross 382 bms.run(scale=thlist)
217 gross 416 out=bms.getHTML(filter=ff)
218     print out

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26