/[escript]/trunk/finley/benchmarks/runbenchmark.py
ViewVC logotype

Contents of /trunk/finley/benchmarks/runbenchmark.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 435 - (show annotations)
Thu Jan 19 03:57:30 2006 UTC (13 years, 7 months ago) by gross
Original Path: trunk/finley/test/python/runbenchmark.py
File MIME type: text/x-python
File size: 9959 byte(s)
minor change
1 #/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 some benchmarks for tetsing the finley solver.
16
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 # thlist=[1,2,4,8,16]
34 thlist=[1,2,4,8,16,32]
35 # thlist=[1,2,4,8,16,32,64,128]
36 # thlist=[1,2,4,8,16,32,64,128]
37 show=True
38 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 opt3=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.RILU,verbose=show)
43 # opt4=FinleyOptions(solver_method=LinearPDE.DIRECT,verbose=show)
44
45 bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")
46 bm_L2Do1.addProblem(Laplace2DOrder1_30k())
47 bm_L2Do1.addProblem(Laplace2DOrder1_60k())
48 bm_L2Do1.addProblem(Laplace2DOrder1_120k())
49 bm_L2Do1.addProblem(Laplace2DOrder1_240k())
50 bm_L2Do1.addProblem(Laplace2DOrder1_480k())
51 bm_L2Do1.addProblem(Laplace2DOrder1_960k())
52 bm_L2Do1.addProblem(Laplace2DOrder1_1920k())
53 bm_L2Do1.addProblem(Laplace2DOrder1_3840k())
54 bm_L2Do1.addProblem(Laplace2DOrder1_7680k())
55 bm_L2Do1.addProblem(Laplace2DOrder1_15360k())
56 bm_L2Do1.addOptions(opt1)
57 bm_L2Do1.addOptions(opt2)
58 bm_L2Do1.addOptions(opt3)
59
60 bm_L2Do2=Benchmark("Laplace 2D (order 2)")
61 bm_L2Do2.addProblem(Laplace2DOrder2_30k())
62 bm_L2Do2.addProblem(Laplace2DOrder2_60k())
63 bm_L2Do2.addProblem(Laplace2DOrder2_120k())
64 bm_L2Do2.addProblem(Laplace2DOrder2_240k())
65 bm_L2Do2.addProblem(Laplace2DOrder2_480k())
66 bm_L2Do2.addProblem(Laplace2DOrder2_960k())
67 bm_L2Do2.addProblem(Laplace2DOrder2_1920k())
68 bm_L2Do2.addProblem(Laplace2DOrder2_3840k())
69 bm_L2Do2.addProblem(Laplace2DOrder2_7680k())
70 bm_L2Do2.addProblem(Laplace2DOrder2_15360k())
71 bm_L2Do2.addOptions(opt1)
72 bm_L2Do2.addOptions(opt2)
73 bm_L2Do2.addOptions(opt3)
74
75 bm_L3Do1=Benchmark("Laplace 3D (order 1)")
76 bm_L3Do1.addProblem(Laplace3DOrder1_30k())
77 bm_L3Do1.addProblem(Laplace3DOrder1_60k())
78 bm_L3Do1.addProblem(Laplace3DOrder1_120k())
79 bm_L3Do1.addProblem(Laplace3DOrder1_240k())
80 bm_L3Do1.addProblem(Laplace3DOrder1_480k())
81 bm_L3Do1.addProblem(Laplace3DOrder1_960k())
82 bm_L3Do1.addProblem(Laplace3DOrder1_1920k())
83 bm_L3Do1.addProblem(Laplace3DOrder1_3840k())
84 bm_L3Do1.addProblem(Laplace3DOrder1_7680k())
85 bm_L3Do1.addProblem(Laplace3DOrder1_15360k())
86 bm_L3Do1.addOptions(opt1)
87 bm_L3Do1.addOptions(opt2)
88 bm_L3Do1.addOptions(opt3)
89
90 bm_L3Do2=Benchmark("Laplace 3D (order 2)")
91 bm_L3Do2.addProblem(Laplace3DOrder2_30k())
92 bm_L3Do2.addProblem(Laplace3DOrder2_60k())
93 bm_L3Do2.addProblem(Laplace3DOrder2_120k())
94 bm_L3Do2.addProblem(Laplace3DOrder2_240k())
95 bm_L3Do2.addProblem(Laplace3DOrder2_480k())
96 bm_L3Do2.addProblem(Laplace3DOrder2_960k())
97 bm_L3Do2.addProblem(Laplace3DOrder2_1920k())
98 bm_L3Do2.addProblem(Laplace3DOrder2_3840k())
99 bm_L3Do2.addProblem(Laplace3DOrder2_7680k())
100 bm_L3Do2.addProblem(Laplace3DOrder2_15360k())
101 bm_L3Do2.addOptions(opt1)
102 bm_L3Do2.addOptions(opt2)
103 bm_L3Do2.addOptions(opt3)
104
105 bm_A2Do1g30=Benchmark("Anisotropic 2D (gamma=30, order=1)")
106 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_30k())
107 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_60k())
108 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_120k())
109 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_240k())
110 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_480k())
111 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_960k())
112 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_1920k())
113 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_3840k())
114 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_7680k())
115 bm_A2Do1g30.addProblem(Anisotropic2DOrder1Gamma30_15360k())
116 bm_A2Do1g30.addOptions(opt1)
117 bm_A2Do1g30.addOptions(opt2)
118 bm_A2Do1g30.addOptions(opt3)
119
120 bm_A2Do1g45=Benchmark("Anisotropic 2D (gamma=45, order=1)")
121 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_30k())
122 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_60k())
123 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_120k())
124 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_240k())
125 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_480k())
126 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_960k())
127 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_1920k())
128 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_3840k())
129 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_7680k())
130 bm_A2Do1g45.addProblem(Anisotropic2DOrder1Gamma45_15360k())
131 bm_A2Do1g45.addOptions(opt1)
132 bm_A2Do1g45.addOptions(opt2)
133 bm_A2Do1g45.addOptions(opt3)
134
135 bm_A2Do2g30=Benchmark("Anisotropic 2D (gamma=30, order=2)")
136 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_30k())
137 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_60k())
138 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_120k())
139 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_240k())
140 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_480k())
141 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_960k())
142 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_1920k())
143 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_3840k())
144 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_7680k())
145 bm_A2Do2g30.addProblem(Anisotropic2DOrder2Gamma30_15360k())
146 bm_A2Do2g30.addOptions(opt1)
147 bm_A2Do2g30.addOptions(opt2)
148 bm_A2Do2g30.addOptions(opt3)
149
150
151 bm_A2Do2g45=Benchmark("Anisotropic 2D (gamma=45, order=2)")
152 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_30k())
153 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_60k())
154 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_120k())
155 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_240k())
156 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_480k())
157 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_960k())
158 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_1920k())
159 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_3840k())
160 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_7680k())
161 bm_A2Do2g45.addProblem(Anisotropic2DOrder2Gamma45_15360k())
162 bm_A2Do2g45.addOptions(opt1)
163 bm_A2Do2g45.addOptions(opt2)
164 bm_A2Do2g45.addOptions(opt3)
165
166
167 bm_A3Do1g30=Benchmark("Anisotropic 3D (gamma=30, order=1)")
168 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_30k())
169 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_60k())
170 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_120k())
171 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_240k())
172 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_480k())
173 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_960k())
174 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_1920k())
175 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_3840k())
176 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_7680k())
177 bm_A3Do1g30.addProblem(Anisotropic3DOrder1Gamma30_15360k())
178 bm_A3Do1g30.addOptions(opt1)
179 bm_A3Do1g30.addOptions(opt2)
180 bm_A3Do1g30.addOptions(opt3)
181
182 bm_A3Do1g45=Benchmark("Anisotropic 3D (gamma=45, order=1)")
183 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_30k())
184 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_60k())
185 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_120k())
186 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_240k())
187 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_480k())
188 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_960k())
189 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_1920k())
190 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_3840k())
191 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_7680k())
192 bm_A3Do1g45.addProblem(Anisotropic3DOrder1Gamma45_15360k())
193 bm_A3Do1g45.addOptions(opt1)
194 bm_A3Do1g45.addOptions(opt2)
195 bm_A3Do1g45.addOptions(opt3)
196
197 bm_A3Do2g30=Benchmark("Anisotropic 3D (gamma=30, order=2)")
198 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_30k())
199 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_60k())
200 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_120k())
201 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_240k())
202 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_480k())
203 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_960k())
204 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_1920k())
205 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_3840k())
206 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_7680k())
207 bm_A3Do2g30.addProblem(Anisotropic3DOrder2Gamma30_15360k())
208 bm_A3Do2g30.addOptions(opt1)
209 bm_A3Do2g30.addOptions(opt2)
210 bm_A3Do2g30.addOptions(opt3)
211
212 bm_A3Do2g45=Benchmark("Anisotropic 3D (gamma=45, order=2)")
213 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_30k())
214 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_60k())
215 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_120k())
216 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_240k())
217 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_480k())
218 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_960k())
219 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_1920k())
220 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_3840k())
221 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_7680k())
222 bm_A3Do2g45.addProblem(Anisotropic3DOrder2Gamma45_15360k())
223 bm_A3Do2g45.addOptions(opt1)
224 bm_A3Do2g45.addOptions(opt2)
225 bm_A3Do2g45.addOptions(opt3)
226
227
228 bms=BenchmarkSuite("Paso/Finley")
229 bms.addBenchmark(bm_L2Do1)
230 bms.addBenchmark(bm_L2Do2)
231 bms.addBenchmark(bm_L3Do1)
232 bms.addBenchmark(bm_L3Do2)
233 bms.addBenchmark(bm_A2Do1g30)
234 bms.addBenchmark(bm_A2Do1g45)
235 bms.addBenchmark(bm_A2Do2g30)
236 bms.addBenchmark(bm_A2Do2g45)
237 bms.addBenchmark(bm_A3Do1g30)
238 bms.addBenchmark(bm_A3Do1g45)
239 bms.addBenchmark(bm_A3Do2g30)
240 bms.addBenchmark(bm_A3Do2g45)
241 bms.run(scale=thlist)
242 out=bms.getHTML(filter=ff)
243 print out

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26