File: node131.html

package info (click to toggle)
lapack 3.0.20000531a-28
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 61,920 kB
  • ctags: 46,200
  • sloc: fortran: 584,835; perl: 8,226; makefile: 2,331; awk: 71; sh: 45
file content (616 lines) | stat: -rw-r--r-- 21,207 bytes parent folder | download | duplicates (4)
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.2 beta6 (August 14th, 1998)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Installing ILAENV</TITLE>
<META NAME="description" CONTENT="Installing ILAENV">
<META NAME="keywords" CONTENT="lug_l2h">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="lug_l2h.css">
<LINK REL="previous" HREF="node130.html">
<LINK REL="up" HREF="node129.html">
<LINK REL="next" HREF="node132.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html6055"
 HREF="node132.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="next_motif.png"></A> 
<A NAME="tex2html6049"
 HREF="node129.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="up_motif.png"></A> 
<A NAME="tex2html6045"
 HREF="node130.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="previous_motif.png"></A> 
<A NAME="tex2html6051"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="contents_motif.png"></A> 
<A NAME="tex2html6053"
 HREF="node152.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="index_motif.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6056"
 HREF="node132.html">Troubleshooting</A>
<B> Up:</B> <A NAME="tex2html6050"
 HREF="node129.html">Installing LAPACK Routines</A>
<B> Previous:</B> <A NAME="tex2html6046"
 HREF="node130.html">Points to Note</A>
 &nbsp <B>  <A NAME="tex2html6052"
 HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html6054"
 HREF="node152.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION03620000000000000000"></A><A NAME="secilaenv"></A>
<BR>
Installing ILAENV
</H1>

<P>
Machine-dependent<A NAME="20685"></A><A NAME="20686"></A>
parameters<A NAME="20687"></A> such as the block size are set
by calls to an inquiry function which may be set with different
values on each machine.
The declaration of the environment inquiry function is
<PRE>
INTEGER FUNCTION ILAENV( ISPEC, NAME, OPTS, N1, N2, N3, N4 )
</PRE>
where ISPEC, N1, N2, N3, and N4 are integer variables and
NAME and OPTS are CHARACTER*(*).  NAME specifies the subroutine name:
OPTS is a character string of options to the subroutine; and N1-N4 are
the problem dimensions.
ISPEC specifies the parameter to be returned; the following values are
currently used in LAPACK:
<PRE><TT>
ISPEC = 1:		  NB, optimal block size 
<BR>		 = 		 2:		  NBMIN, minimum block size for the block routine to be used 
<BR>		 = 		 3:		  NX, crossover point (in a block routine, for N <B>&lt;</B> NX, an unblocked 
<BR>
routine should be used) 
<BR>		 = 		 4:		  NS, number of shifts 
<BR> = 		 6:		  NXSVD is the threshold point for which the <B><I>QR</I></B> 
<BR>
factorization is performed prior to reduction to 
<BR>
bidiagonal form.  If M <B>&gt;</B> NXSVD <IMG
 WIDTH="9" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img946.png"
 ALT="$\cdot$">
N, then a 
<BR>		 		 		  <B><I>QR</I></B> factorization is performed. 
<BR>
<P>
		 = 		 8:		  MAXB, crossover point for block multishift <B><I>QR</I></B> 
<BR>		 = 		 9:		  SMLSIZ, maximum size of the subproblems at the 
<BR>
bottom of the computation tree in the divide-and-conquer 
<BR>
algorithm 
<BR>		 = 		 10:		 NAN, IEEE NaN arithmetic can be trusted not to trap 
<BR>		 = 		 11:		 INFINITY, infinity arithmetic can be trusted not to trap
</TT></PRE>

<P>
The three block size parameters, NB, NBMIN, and NX, are used in many
different<A NAME="20692"></A>
subroutines (see Table&nbsp;<A HREF="node131.html#nbnx.tab">6.1</A>).
NS and MAXB are used<A NAME="20694"></A>  in the 
block multishift <B><I>QR</I></B> algorithm, xHSEQR.
<A NAME="20695"></A><A NAME="20696"></A><A NAME="20697"></A><A NAME="20698"></A>
NXSVD is used<A NAME="20699"></A> in the driver 
routines xGELSS and xGESVD.
<A NAME="20700"></A><A NAME="20701"></A><A NAME="20702"></A><A NAME="20703"></A>
<A NAME="20704"></A><A NAME="20705"></A><A NAME="20706"></A><A NAME="20707"></A>
SMLSIZ is used<A NAME="20708"></A> in the
divide and conquer routines xBDSDC, xGELSD, xGESDD, and xSTEDC.
<A NAME="20709"></A><A NAME="20710"></A><A NAME="20711"></A><A NAME="20712"></A>
<A NAME="20713"></A><A NAME="20714"></A><A NAME="20715"></A><A NAME="20716"></A>
<A NAME="20717"></A><A NAME="20718"></A><A NAME="20719"></A><A NAME="20720"></A>
<A NAME="20721"></A><A NAME="20722"></A><A NAME="20723"></A><A NAME="20724"></A>
The parameters NAN and INFINITY are used in the driver routines
xSTEVR and xSYEVR/xCHEEVR to check for IEEE-754 compliance.  If
compliance is detected, then these driver routines call xSTEGR.
Otherwise, a slower algorithm is selected. 
<A NAME="20725"></A><A NAME="20726"></A>
<A NAME="20727"></A><A NAME="20728"></A><A NAME="20729"></A><A NAME="20730"></A>
<A NAME="20731"></A><A NAME="20732"></A><A NAME="20733"></A><A NAME="20734"></A>

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="20794"></A>
<TABLE>
<CAPTION><STRONG>Table 6.1:</STRONG>
Use of the block parameters NB, NBMIN, and NX in LAPACK</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"> 
 
<TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="LEFT">real</TD>
<TD ALIGN="LEFT">complex</TD>
<TD ALIGN="CENTER">NB</TD>
<TD ALIGN="CENTER">NBMIN</TD>
<TD ALIGN="CENTER">NX</TD>
</TR>
<TR><TD ALIGN="LEFT">SGBTRF<A NAME="20743"></A></TD>
<TD ALIGN="LEFT">CGBTRF<A NAME="20744"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SGEBRD<A NAME="20745"></A></TD>
<TD ALIGN="LEFT">CGEBRD<A NAME="20746"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SGEHRD<A NAME="20747"></A></TD>
<TD ALIGN="LEFT">CGEHRD<A NAME="20748"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SGELQF<A NAME="20749"></A></TD>
<TD ALIGN="LEFT">CGELQF<A NAME="20750"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SGEQLF<A NAME="20751"></A></TD>
<TD ALIGN="LEFT">CGEQLF<A NAME="20752"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SGEQRF<A NAME="20753"></A></TD>
<TD ALIGN="LEFT">CGEQRF<A NAME="20754"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SGERQF<A NAME="20755"></A></TD>
<TD ALIGN="LEFT">CGERQF<A NAME="20756"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SGETRF<A NAME="20757"></A></TD>
<TD ALIGN="LEFT">CGETRF<A NAME="20758"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SGETRI<A NAME="20759"></A></TD>
<TD ALIGN="LEFT">CGETRI<A NAME="20760"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SORGLQ<A NAME="20761"></A></TD>
<TD ALIGN="LEFT">CUNGLQ<A NAME="20762"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SORGQL<A NAME="20763"></A></TD>
<TD ALIGN="LEFT">CUNGQL<A NAME="20764"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SORGQR<A NAME="20765"></A></TD>
<TD ALIGN="LEFT">CUNGQR<A NAME="20766"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SORGRQ<A NAME="20767"></A></TD>
<TD ALIGN="LEFT">CUNGRQ<A NAME="20768"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SORMLQ<A NAME="20769"></A></TD>
<TD ALIGN="LEFT">CUNMLQ<A NAME="20770"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SORMQL<A NAME="20771"></A></TD>
<TD ALIGN="LEFT">CUNMQL<A NAME="20772"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SORMQR<A NAME="20773"></A></TD>
<TD ALIGN="LEFT">CUNMQR<A NAME="20774"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SORMRQ<A NAME="20775"></A></TD>
<TD ALIGN="LEFT">CUNMRQ<A NAME="20776"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SPBTRF<A NAME="20777"></A></TD>
<TD ALIGN="LEFT">CPBTRF<A NAME="20778"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SPOTRF<A NAME="20779"></A></TD>
<TD ALIGN="LEFT">CPOTRF<A NAME="20780"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SPOTRI<A NAME="20781"></A></TD>
<TD ALIGN="LEFT">CPOTRI<A NAME="20782"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SSTEBZ<A NAME="20783"></A></TD>
<TD ALIGN="LEFT">&nbsp;</TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SSYGST<A NAME="20784"></A></TD>
<TD ALIGN="LEFT">CHEGST<A NAME="20785"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">SSYTRD<A NAME="20786"></A></TD>
<TD ALIGN="LEFT">CHETRD<A NAME="20787"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
</TR>
<TR><TD ALIGN="LEFT">SSYTRF<A NAME="20788"></A></TD>
<TD ALIGN="LEFT">CHETRF<A NAME="20789"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">&nbsp;</TD>
<TD ALIGN="LEFT">CSYTRF<A NAME="20790"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
<TR><TD ALIGN="LEFT">STRTRI<A NAME="20791"></A></TD>
<TD ALIGN="LEFT">CTRTRI<A NAME="20792"></A></TD>
<TD ALIGN="CENTER"><IMG
 WIDTH="13" HEIGHT="16" ALIGN="BOTTOM" BORDER="0"
 SRC="img947.png"
 ALT="$\bullet$"></TD>
<TD ALIGN="CENTER">&nbsp;</TD>
<TD ALIGN="CENTER">&nbsp;</TD>
</TR>
</TABLE>

<A NAME="nbnx.tab"></A></DIV></TD></TR>
</TABLE>
</DIV>
<BR>

<P>
The LAPACK testing and timing programs use a special version of ILAENV
<A NAME="20797"></A>
where the parameters are set via a COMMON block interface.
This is convenient for experimenting with different values of, say,
the block size in order to exercise different parts of the code
and to compare the relative performance of different parameter values.

<P>
The LAPACK timing programs were designed to collect data for all of the
routines in Table&nbsp;<A HREF="node131.html#nbnx.tab">6.1</A>.
The range of problem sizes needed to determine the optimal block size
or crossover point<A NAME="20799"></A> is machine-dependent, but the 
input files
provided with the LAPACK test and timing package can be used as a
starting point.
For subroutines that require a crossover point, it is best to start by
finding the best block size<A NAME="20800"></A> with the crossover 
point set to 0, and then
to locate the point at which the performance of the unblocked algorithm
is beaten by the block algorithm.
The best crossover point<A NAME="20801"></A>
will be somewhat smaller than the point
where the curves for the unblocked and blocked methods cross.

<P>
For example, for SGEQRF<A NAME="20802"></A> on a single processor of a CRAY-2, 
NB = 32 was observed to be a good block size<A NAME="20803"></A>, 
and the performance of the block algorithm with this block size
surpasses the unblocked algorithm for square matrices
between <B><I>N</I> = 176</B> and <B><I>N</I> = 192</B>.
Experiments with crossover points from 64 to 192 found that NX = 128
was a good choice, although the results for NX from 3*NB to 5*NB
are broadly similar.
This means that matrices with <IMG
 WIDTH="70" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img948.png"
 ALT="$N \leq 128$">
should use the unblocked
algorithm, and for <B><I>N</I> &gt; 128</B> block updates should be used until the
remaining submatrix has order less than 128.
The performance of the unblocked (NB = 1) and blocked (NB = 32)
algorithms for SGEQRF<A NAME="20804"></A> and for the blocked algorithm with a crossover
point of 128 are compared in Figure&nbsp;<A HREF="node131.html#qrfx.fig">6.1</A>.

<P>

<P></P>
<DIV ALIGN="CENTER"><A NAME="qrfx.fig"></A><A NAME="20808"></A>
<TABLE>
<CAPTION><STRONG>Figure 6.1:</STRONG>
QR factorization on CRAY-2 (1 processor)</CAPTION>
<TR><TD><IMG
 WIDTH="447" HEIGHT="318" BORDER="0"
 SRC="img949.png"
 ALT="\begin{figure}
\centerline{\psfig{figure=qrcray.eps,height=3.0in,width=4.0in}}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>

<P>
By experimenting with small values of the block size,
it should be straightforward to choose NBMIN,
the smallest block size that gives a performance improvement
over the unblocked algorithm.
Note that on some machines, the optimal block size may be 1
(the unblocked algorithm gives the best performance);
in this case, the choice of NBMIN is arbitrary.
The prototype version of ILAENV<A NAME="20811"></A> sets NBMIN to 2, so that blocking
is always done, even though this could lead to poor performance
from a block routine if insufficient workspace is supplied
(see chapter&nbsp;<A HREF="node132.html#troubleshooting">7</A>).

<P>
Complicating the determination of optimal parameters is the fact that
the orthogonal factorization routines and SGEBRD<A NAME="20813"></A> accept non-square
matrices as input. 
The LAPACK timing program allows M and N to be varied independently.  
We have found the optimal block size to be
generally insensitive to the shape of the matrix,
but the crossover point is more dependent on the matrix shape.
For example, if <B><I>M</I> &gt;&gt; <I>N</I></B> in the <B><I>QR</I></B> factorization, block updates
may always be faster than unblocked updates on the remaining submatrix,
so one might set NX = NB if <IMG
 WIDTH="71" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
 SRC="img950.png"
 ALT="$M \geq 2N$">.

<P>
Parameter values for the number of shifts, etc.
used to tune the block multishift <B><I>QR</I></B> 
algorithm<A NAME="20814"></A>
can be varied from the input files to the eigenvalue timing program.
In particular, the performance of xHSEQR is particularly sensitive to
<A NAME="20815"></A><A NAME="20816"></A><A NAME="20817"></A><A NAME="20818"></A>
the correct choice of block parameters.  Setting NS&nbsp;=&nbsp;2 will give
essentially the same performance as EISPACK<A NAME="20819"></A>.
Interested users should consult [<A
 HREF="node151.html#lawn41">3</A>] for a description of
the timing program input files.

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html6055"
 HREF="node132.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="next_motif.png"></A> 
<A NAME="tex2html6049"
 HREF="node129.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="up_motif.png"></A> 
<A NAME="tex2html6045"
 HREF="node130.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="previous_motif.png"></A> 
<A NAME="tex2html6051"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="contents_motif.png"></A> 
<A NAME="tex2html6053"
 HREF="node152.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="index_motif.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6056"
 HREF="node132.html">Troubleshooting</A>
<B> Up:</B> <A NAME="tex2html6050"
 HREF="node129.html">Installing LAPACK Routines</A>
<B> Previous:</B> <A NAME="tex2html6046"
 HREF="node130.html">Points to Note</A>
 &nbsp <B>  <A NAME="tex2html6052"
 HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html6054"
 HREF="node152.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
<I>Susan Blackford</I>
<BR><I>1999-10-01</I>
</ADDRESS>
</BODY>
</HTML>