forked from johannesgerer/jburkardt-f
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bt_serial.html
406 lines (362 loc) · 11.3 KB
/
bt_serial.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<html>
<head>
<title>
BT_SERIAL - NAS Parallel Benchmark BT, Serial Version, FORTRAN90
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
BT_SERIAL <br> NAS Parallel Benchmark BT, Serial Version, FORTRAN90
</h1>
<hr>
<p>
<b>BT_SERIAL</b>
is a FORTRAN90 program which
is a serial implementation of the NAS Parallel Benchmark
known as BT ("block tridiagonal solver for 3D PDE").
</p>
<p>
The NAS Parallel Benchmarks are "paper and pencil" specifications; that is, the
proposers have laid down what the programs must do algorithmically,
but only very general rules about computer language implementation
have been given. Thus, a user or vendor has enormous freedom in
implementing the benchmark program in a way that is optimal for
a given architecture or parallel programming scheme.
</p>
<p>
As a starting point for implementors, the proposers have supplied
certain initial versions of the benchmark programs.
</p>
<p>
This directory contains material derived from one such initial
benchmark code. Persons interested in the original source of the
benchmark codes should NOT work from this material, but should
go to the NAS Parallel Benchmark website directly!
</p>
<p>
The benchmark programs are available in SERIAL, MPI and OPEN_MP
versions, and in a sequence of "classes" of increasing size: S, W, A, B, C, D and E.
</p>
<p>
Statistics for the classes S, A, and B, are available, as run on one processor
of a Cray Y-MP, with a FORTRAN77 version of the program.
<table border="1" align="center">
<tr><th>Class</th><th>Size</th><th>Memory (Mw)</th><th>Time (sec)</th><th>MFLOPS</th></tr>
<tr><td>S</td><td>12x12x12</td><td>0.3</td><td>7.2</td><td>34</td></tr>
<tr><td>A</td><td>64x64x64</td><td>24.0</td><td>923.0</td><td>192</td></tr>
<tr><td>B</td><td>102x102x102</td><td>96.0</td><td>3554.0</td><td>203</td></tr>
<tr><td>C</td><td>162x162x162</td><td>?</td><td>?</td><td>?</td></tr>
</table>
</p>
<p>
Statistics for classes S, W, A, B, and C are available, as run on an Apple PowerPC G5,
using this SERIAL FORTRAN90 version of the program:
<table border="1" align="center">
<tr><th>Class</th><th>Size</th><th>Memory (Mw)</th><th>Time (sec)</th><th>MFLOPS</th></tr>
<tr><td>S</td><td>12x12x12</td><td>0.3</td><td>1</td><td>230</td></tr>
<tr><td>W</td><td>24x24x24</td><td>?</td><td>33</td><td>233</td></tr>
<tr><td>A</td><td>64x64x64</td><td>24.0</td><td>735</td><td>228</td></tr>
<tr><td>B</td><td>102x102x102</td><td>96.0</td><td>3192</td><td>219</td></tr>
<tr><td>C</td><td>162x162x162</td><td>?</td><td>?</td><td>?</td></tr>
</table>
</p>
<p>
This directory contains the serial version of the benchmark, along
with include files that allow it to run in some of the smaller sizes.
</p>
<p>
The web site for the NAS Parallel Benchmarks is
<a href = "http://www.nas.nasa.gov/Resources/Software/npb.html">
http://www.nas.nasa.gov/Resources/Software/npb.html</a>.
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>BT_SERIAL</b> is available in
<a href = "../../f77_src/bt_serial/bt_serial.html">a FORTRAN77 version</a> and
<a href = "../../f_src/bt_serial/bt_serial.html">a FORTRAN90 version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../f77_src/cg_serial/cg_serial.html">
CG_SERIAL</a>,
a FORTRAN77 program which
is a serial version of the NAS Parallel Benchmark CG
(conjugate gradient solver).
</p>
<p>
<a href = "../../f_src/ep_serial/ep_serial.html">
EP_SERIAL</a>,
a FORTRAN90 program which
runs the serial version of the NAS Parallel Benchmark known as "EP"
(embarassingly parallel).
</p>
<p>
<a href = "../../c_src/is_serial/is_serial.html">
IS_SERIAL</a>,
a C program which
is a serial version of the NAS Parallel Benchmark IS
(integer sort).
</p>
<p>
<a href = "../../f77_src/linpack_bench/linpack_bench.html">
LINPACK_BENCH</a>,
a FORTRAN77 program which
measures the time taken by <b>LINPACK</b> to solve a particular linear system.
</p>
<p>
<a href = "../../f_src/matmul/matmul.html">
MATMUL</a>,
a FORTRAN90 program which
is an interactive matrix multiplication benchmark.
</p>
<p>
<a href = "../../f77_src/mdbnch/mdbnch.html">
MDBNCH</a>,
a FORTRAN77 program which
is a benchmark molecular simulation calculation.
</p>
<p>
<a href = "../../f_src/mxm_serial/mxm_serial.html">
MXM_SERIAL</a>,
a FORTRAN90 program which
sets up a matrix multiplication problem A=B*C,
intended as a starting point for implementing a parallel version.
</p>
<p>
<a href = "../../f_src/poisson_serial/poisson_serial.html">
POISSON_SERIAL</a>,
a FORTRAN90 program which
computes an approximate solution to the Poisson equation in a rectangle,
and is intended as the starting point for the creation of a parallel version.
</p>
<p>
<a href = "../../f_src/prime_serial/prime_serial.html">
PRIME_SERIAL</a>,
a FORTRAN90 program which
counts the number of primes between 1 and N,
intended as a starting point for the creation of a parallel version.
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ol>
<li>
David Bailey, Eric Barszcz, John Barton, D Browning, Robert Carter,
Leonardo Dagum, Rod Fatoohi,
Samuel Fineberg, Paul Frederickson, Thomas Lasinski, Robert Schreiber, Horst Simon,
V Venkatakrishnan, Sisira Weeratunga,<br>
The NAS Parallel Benchmarks,<br>
RNR Technical Report RNR-94-007,
March 1994.
</li>
</ol>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "bt_serial.f90">bt_serial.f90</a>, the source code.
</li>
<li>
<a href = "header.h">header.h</a>, an include file for BT_SERIAL.
</li>
<li>
<a href = "work_lhs.h">work_lhs.h</a>, an include file for BT_SERIAL.
</li>
<li>
<a href = "wtime.c">wtime.c</a>, a small routine used for timing.
</li>
<li>
<a href = "wtime.h">wtime.h</a>, an include file for WTIME.
</li>
</ul>
</p>
<h3 align = "center">
Examples and tests:
</h3>
<p>
<b>BT_SERIAL_S</b> runs the benchmark in serial mode with problem size S.
<ul>
<li>
<a href = "npbparams_S.h">nbparams_S.h</a>,
the include file.
</li>
<li>
<a href = "bt_serial_S.sh">bt_serial_S.sh</a>,
a script which compiles the code.
</li>
<li>
<a href = "bt_serial_S_output.txt">bt_serial_S_output.txt</a>,
the output file.
</li>
</ul>
</p>
<p>
<b>BT_SERIAL_W</b> runs the benchmark in serial mode with problem size W.
<ul>
<li>
<a href = "npbparams_W.h">nbparams_W.h</a>,
the include file.
</li>
<li>
<a href = "bt_serial_W.sh">bt_serial_W.sh</a>,
a script which compiles the code.
</li>
<li>
<a href = "bt_serial_W_output.txt">bt_serial_W_output.txt</a>,
the output file.
</li>
</ul>
</p>
<p>
<b>BT_SERIAL_A</b> runs the benchmark in serial mode with problem size A.
<ul>
<li>
<a href = "npbparams_A.h">nbparams_A.h</a>,
the include file.
</li>
<li>
<a href = "bt_serial_A.sh">bt_serial_A.sh</a>,
a script which compiles the code.
</li>
<li>
<a href = "bt_serial_A_output.txt">bt_serial_A_output.txt</a>,
the output file.
</li>
</ul>
</p>
<p>
<b>BT_SERIAL_B</b> runs the benchmark in serial mode with problem size B.
<ul>
<li>
<a href = "npbparams_B.h">nbparams_B.h</a>,
the include file.
</li>
<li>
<a href = "bt_serial_B.sh">bt_serial_B.sh</a>,
a script which compiles the code.
</li>
<li>
<a href = "bt_serial_B_output.txt">bt_serial_B_output.txt</a>,
the output file.
</li>
</ul>
</p>
<p>
<b>BT_SERIAL_C</b> runs the benchmark in serial mode with problem size C.
<ul>
<li>
<a href = "npbparams_C.h">nbparams_C.h</a>,
the include file.
</li>
<li>
<a href = "bt_serial_C.sh">bt_serial_C.sh</a>,
a script which compiles the code.
</li>
<li>
<a href = "bt_serial_C_output.txt">bt_serial_C_output.txt</a>,
the output file.
</li>
</ul>
</p>
<h3 align = "center">
List of Routines:
</h3>
<p>
<ul>
<li>
<b>MAIN</b> is the main program for the BT_SERIAL benchmark.
</li>
<li>
<b>ADD</b> updates the vector U.
</li>
<li>
<b>ADI</b>
</li>
<li>
<b>ERROR_NORM</b> computes the norm of the error.
</li>
<li>
<b>RHS_NORM</b>
</li>
<li>
<b>EXACT_RHS</b> computes the right hand side based on exact solution.
</li>
<li>
<b>EXACT_SOLUTION</b> returns the exact solution at point (xi, eta, zeta).
</li>
<li>
<b>INITIALIZE</b> initializes the field variable u.
</li>
<li>
<b>LHSINIT</b>
</li>
<li>
<b>PRINT_RESULTS</b>
</li>
<li>
<b>COMPUTE_RHS</b>
</li>
<li>
<b>SET_CONSTANTS</b>
</li>
<li>
<b>MATVEC_SUB</b> subtracts bvec=bvec - ablock*avec
</li>
<li>
<b>MATMUL_SUB</b> subtracts a(i,j,k) X b(i,j,k) from c(i,j,k)
</li>
<li>
<b>BINVCRHS</b>
</li>
<li>
<b>BINVRHS</b>
</li>
<li>
<b>TIMER_CLEAR</b>
</li>
<li>
<b>TIMER_START</b>
</li>
<li>
<b>TIMER_STOP</b>
</li>
<li>
<b>TIMER_READ</b>
</li>
<li>
<b>ELAPSED_TIME</b>
</li>
<li>
<b>VERIFY</b> is the verification routine
</li>
<li>
<b>XSOLVE</b> performs line solves in the X direction.
</li>
<li>
<b>Y_SOLVE</b> performs line solves in the Y direction.
</li>
<li>
<b>ZSOLVE</b> performs line solves in the Z direction.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../f_src.html">
the FORTRAN90 source codes</a>.
</p>
<hr>
<i>
Last revised on 30 March 2009.
</i>
<!-- John Burkardt -->
</body>
<!-- Initial HTML skeleton created by HTMLINDEX. -->
</html>