Environmental enquiry function that returns values for tuning algorithmic performance.
The enquiry function ilaenv is called from the LAPACK routines to choose problem-dependent parameters for the local environment. See ispec below for a description of the parameters.
This version provides a set of parameters that should give good, but not optimal, performance on many of the currently available computers.
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.
Notice revision #20110804
Specifies the parameter to be returned as the value of ilaenv:
= 1: the optimal blocksize; if this value is 1, an unblocked algorithm will give the best performance.
= 2: the minimum block size for which the block routine should be used; if the usable block size is less than this value, an unblocked routine should be used.
= 3: the crossover point (in a block routine, for n less than this value, an unblocked routine should be used)
= 4: the number of shifts, used in the nonsymmetric eigenvalue routines (deprecated)
= 5: the minimum column dimension for blocking to be used; rectangular blocks must have dimension at least k-by-m, where k is given by
ilaenv(2,...)and m by
= 6: the crossover point for the SVD (when reducing an m-by-n matrix to bidiagonal form, if
max(m,n)/min(m,n)exceeds this value, a QR factorization is used first to reduce the matrix to a triangular form.)
= 7: the number of processors
= 8: the crossover point for the multishift QR and QZ methods for nonsymmetric eigenvalue problems (deprecated).
= 9: maximum size of the subproblems at the bottom of the computation tree in the divide-and-conquer algorithm (used by ?gelsd and ?gesdd)
=10: ieee NaN arithmetic can be trusted not to trap
=11: infinity arithmetic can be trusted not to trap
12 ≤ ispec ≤ 16: ?hseqr or one of its subroutines, see iparmq for detailed explanation.
CHARACTER*(*). The name of the calling subroutine, in either upper case or lower case.
CHARACTER*(*). The character options to the subroutine name, concatenated into a single character string. For example,
uplo = 'U',
trans = 'T', and
diag = 'N'for a triangular routine would be specified as
opts = 'UTN'.
Use only uppercase characters for the opts string.
- n1, n2, n3, n4
INTEGER. Problem dimensions for the subroutine name; these may not all be required.
value ≥ 0: the value of the parameter specified by ispec;
value = -k < 0: the k-th argument had an illegal value.
The following conventions have been used when calling ilaenv from the LAPACK routines:
opts is a concatenation of all of the character options to subroutine name, in the same order that they appear in the argument list for name, even if they are not used in determining the value of the parameter specified by ispec.
The problem dimensions n1, n2, n3, n4 are specified in the order that they appear in the argument list for name. n1 is used first, n2 second, and so on, and unused problem dimensions are passed a value of -1.
The parameter value returned by ilaenv is checked for validity in the calling subroutine. For example, ilaenv is used to retrieve the optimal blocksize for strtri as follows:
nb = ilaenv( 1, 'strtri', uplo // diag, n, -1, -1, -1> ) if( nb.le.1 ) nb = max( 1, n )