Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
cluster_sparse_solver iparm Parameter
The following table describes all individual components of the Intel® oneAPI Math Kernel Library (oneMKL) Parallel Direct Sparse Solver for Clusters (Intel® oneMKL Parallel Direct Sparse Solver for Clusters) iparm parameter. Components which are not used must be initialized with 0. Default values are denoted with an asterisk (*).
Component |
Description |
|---|---|
iparm(1) input |
Use default values.
|
iparm(2) input |
Fill-in reducing ordering for the input matrix.
|
iparm(3) |
Reserved. Set to zero. |
iparm(4) |
Reserved. Set to zero. |
iparm(5) input |
User permutation. This parameter controls whether user supplied fill-in reducing permutation is used instead of the integrated multiple-minimum degree or nested dissection algorithms. Another use of this parameter is to control obtaining the fill-in reducing permutation vector calculated during the reordering stage of Intel® oneAPI Math Kernel Library (oneMKL) PARDISO. This option is useful for testing reordering algorithms, adapting the code to special applications problems (for instance, to move zero diagonal elements to the end of \(P\cdot A\cdot P^{T}\) ), or for using the permutation vector more than once for matrices with identical sparsity structures. For definition of the permutation, see the description of the perm parameter.
CAUTION:
You can only set one of iparm(5) , iparm(31) , and iparm(36) , so be sure that the iparm(31) (partial solution) and the iparm(36) (Schur complement) parameters are 0 if you set iparm(5) .
|
iparm(6) input |
Write solution on x .
NOTE:
The array x is always used.
|
iparm(7) output |
Number of iterative refinement steps performed. Reports the number of iterative refinement steps that were actually performed during the solve step. |
iparm(8) input |
Iterative refinement step. On entry to the solve and iterative refinement step, iparm(8) must be set to the maximum number of iterative refinement steps that the solver performs.
|
iparm(9) |
Reserved. Set to zero. |
iparm(10) input |
Pivoting perturbation. This parameter instructs Intel MKL Parallel Direct Sparse Solver for Clusters how to handle small pivots or zero pivots for nonsymmetric matrices ( mtype =11 or mtype =13 ) and symmetric matrices ( mtype =-2 , mtype =-4 , or mtype =6 ). For these matrices the solver uses a complete supernode pivoting approach. When the factorization algorithm reaches a point where it cannot factor the supernodes with this pivoting strategy, it uses a pivoting perturbation strategy similar to [Li99] , [Schenk04] . Small pivots are perturbed with \(eps = 10^{-\text{iparm(10)}}\). The magnitude of the potential pivot is tested against a constant threshold of \(alpha = eps\cdot ||A2||_{inf},\) where \(eps = 10^{(-\text{iparm(10)})}\), \(A2 = P\cdot P_{MPS}\cdot D_{r}\cdot A\cdot D_{c}\cdot P\), and \(||A2||_{inf}\) is the infinity norm of the scaled and permuted matrix \(A\). Any tiny pivots encountered during elimination are set to the \(sign(l_{ I I } )\cdot eps\cdot ||A2||_{inf}\), where \(l_{ I I }\) is the tiny pivot (diagonal) element at the \(I\)-th row. This approach trades off some numerical stability for the ability to prevent pivots from becoming too small.
|
iparm(11) input |
Scaling vectors. Intel MKL Parallel Direct Sparse Solver for Clusters uses a maximum weight matching algorithm to permute large elements on the diagonal and to scale. Use iparm(11) = 1 (scaling) and iparm(13) = 1 (matching) for highly indefinite symmetric matrices, for example, from interior point optimizations or saddle point problems. Note that in the analysis phase ( phase=11 ) you must provide the numerical values of the matrix \(A\) in array a in case of scaling and symmetric weighted matching.
|
iparm(12) input |
Solve with transposed or conjugate transposed matrix \(A\). For real matrices, the terms transposed and conjugate transposed are equivalent.
|
iparm(13) input |
Improved accuracy using (non-) symmetric weighted matching. Intel MKL Parallel Direct Sparse Solver for Clusters can use a maximum weighted matching algorithm to permute large elements close the diagonal. This strategy adds an additional level of reliability to the factorization methods and complements the alternative of using more complete pivoting techniques during the numerical factorization.
|
iparm(14) output |
Number of perturbed pivots. After factorization, contains the number of perturbed pivots for the matrix types: 1, 3, 11, 13, -2, -4 and 6. |
iparm(15) output |
Peak memory on symbolic factorization. The total peak memory in kilobytes that the solver needs during the analysis and symbolic factorization phase. This value is only computed in phase 1. |
iparm(16) output |
Permanent memory on symbolic factorization. Permanent memory from the analysis and symbolic factorization phase in kilobytes that the solver needs in the factorization and solve phases. This value is only computed in phase 1. |
iparm(17) output |
Size of factors/Peak memory on numerical factorization and solution. This parameter provides the size in kilobytes of the total memory consumed by in-core Intel® oneAPI Math Kernel Library (oneMKL) PARDISO for internal floating point arrays. This parameter is computed in phase 1. See iparm[62] for the OOC mode. The total peak memory consumed by Intel® oneAPI Math Kernel Library (oneMKL) PARDISO is max(iparm(15), iparm(16)+iparm(17)) |
iparm(18) input/output |
Report the number of non-zero elements in the factors.
|
iparm(19) - iparm(20) |
Reserved. Set to zero. |
iparm(21) input |
Pivoting for symmetric indefinite matrices.
|
iparm(22) output |
Inertia: number of positive eigenvalues. Intel® oneAPI Math Kernel Library (oneMKL) PARDISO reports the number of positive eigenvalues for symmetric indefinite matrices. |
iparm(23) output |
Inertia: number of negative eigenvalues. Intel® oneAPI Math Kernel Library (oneMKL) PARDISO reports the number of negative eigenvalues for symmetric indefinite matrices. |
iparm(24) - iparm(26) |
Reserved. Set to zero. |
iparm(27) input |
Matrix checker.
|
iparm(28) input |
Single or double precision Intel MKL Parallel Direct Sparse Solver for Clusters. See iparm(8) for information on controlling the precision of the refinement steps.
|
iparm(29) |
Reserved. Set to zero. |
iparm(30) output |
Number of zero or negative pivots. If Intel® oneAPI Math Kernel Library (oneMKL) PARDISO detects zero or negative pivot for mtype =2 or mtype =4 matrix types, the factorization is stopped. Intel® oneAPI Math Kernel Library (oneMKL) PARDISO returns immediately with an error = -4, and iparm(30) reports the number of the equation where the zero or negative pivot is detected.
NOTE:
The returned value can be different for the parallel and sequential version in case of several zero/negative pivots.
|
iparm(31) input |
Partial solve and computing selected components of the solution vectors. This parameter controls the solve step of Intel® oneAPI Math Kernel Library (oneMKL) PARDISO. It can be used if only a few components of the solution vectors are needed or if you want to reduce the computation cost at the solve step by utilizing the sparsity of the right-hand sides. To use this option the input permutation vector define perm so that when perm(i) = 1 it means that either the i -th component in the right-hand sides is nonzero, or the i -th component in the solution vectors is computed, or both, depending on the value of iparm(31). The permutation vector perm must be present in all phases of Intel® oneAPI Math Kernel Library (oneMKL) PARDISO software. At the reordering step, the software overwrites the input vector perm by a permutation vector used by the software at the factorization and solver step. If m is the number of components such that perm(i) = 1, then the last m components of the output vector perm are a set of the indices i satisfying the condition perm(i) = 1 on input.
NOTE:
Turning on this option often increases the time used by Intel® oneAPI Math Kernel Library (oneMKL) PARDISO for factorization and reordering steps, but it can reduce the time required for the solver step.
IMPORTANT:
Set the parameters iparm(8) (iterative refinement steps), iparm(4) (preconditioned CGS), iparm(5) (user permutation), and iparm(36) (Schur complement) to 0 as well.
|
iparm(32) - iparm(34) |
Reserved. Set to zero. |
iparm(35) input |
One- or zero-based indexing of columns and rows.
|
iparm(36) input |
Schur complement matrix computation control. To calculate this matrix, you must set the input permutation vector perm to a set of indexes such that when perm(i) = 1 , the i -th element of the initial matrix is an element of the Schur matrix.
CAUTION:
You can only set one of iparm(5) , iparm(31) , and iparm(36) , so be sure that the iparm(5) (user permutation) and the iparm(31) (partial solution) parameters are 0 if you set iparm(36) .
|
iparm(37) input |
Format for matrix storage.
|
iparm(38) - iparm(39) |
Reserved. Set to zero. |
iparm(40) input |
Matrix input format.
NOTE:
Performance of the reordering step of the Intel MKL Parallel Direct Sparse Solver for Clusters is slightly better for assembled format (CSR, iparm(40) = 0 ) than for distributed format (DCSR, iparm(40) > 0 ) for the same matrices, so if the matrix is assembled on one node do not distribute it before calling cluster_sparse_solver .
|
iparm(41) input |
Beginning of input domain. The number of the matrix \(A\) row, RHS element, and, for iparm(40) =2, solution vector that begins the input domain belonging to this MPI process. Only applicable to the distributed assembled matrix input format ( iparm(40) > 0 ). See Sparse Matrix Storage Formats for more details. |
iparm(42) input |
End of input domain. The number of the matrix \(A\) row, RHS element, and, for iparm(40) =2, solution vector that ends the input domain belonging to this MPI process. Only applicable to the distributed assembled matrix input format ( iparm(40) > 0 ). See Sparse Matrix Storage Formats for more details. |
iparm(43) - iparm(59) |
Reserved. Set to zero. |
iparm(60) input |
cluster_sparse_solver mode. iparm(60) switches between in-core (IC) and out-of-core (OOC) of cluster_sparse_solver. OOC can solve very large problems by holding the matrix factors in files on the disk, which requires a reduced amount of main memory compared to IC. Unless you are operating in sequential mode, you can switch between IC and OOC modes after the reordering phase. However, you can get better cluster_sparse_solver performance by setting iparm(60) before the reordering phase. The amount of memory used in OOC mode depends on the number of OpenMP threads.
WARNING:
Do not increase the number of OpenMP threads used for cluster_sparse_solver between the first call and the factorization or solution phase. Because the minimum amount of memory required for out-of-core execution depends on the number of OpenMP threads, increasing it after the initial call can cause incorrect results.
|
iparm(61) input |
Reserved. Set to zero. |
iparm(63) output |
Size of the minimum OOC memory for numerical factorization and solution. This parameter provides the size in kilobytes of the minimum memory required by OOC Intel® oneAPI Math Kernel Library (oneMKL) PARDISO for internal floating point arrays. This parameter is computed in phase 1. The minimum RAM requirement for OOC mode is given as max(iparm(15), iparm(16)+iparm(63)); that is, for OOC mode to run, ensure that MKL_PARDISO_OOC_MAX_CORE_SIZE > max(iparm(15), iparm(16)+iparm(63)). |
iparm(64) input |
Reserved. Set to zero. |
- [1]
-
Generally in sparse matrices, components which are equal to zero can be considered non-zero if necessary. For example, in order to make a matrix structurally symmetric, elements which are zero can be considered non-zero. See Sparse Matrix Storage Formats for an example.
Product and Performance Information |
|---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex . Notice revision #20201201 |