petsc-3.8.4 2018-03-24
Report Typos and Errors

MatCreateSeqAIJMKL

Creates a sparse matrix of type SEQAIJMKL. This type inherits from AIJ and is largely identical, but uses sparse BLAS routines from Intel MKL whenever possible. MatMult, MatMultAdd, MatMultTranspose, and MatMultTransposeAdd operations are currently supported. If the installed version of MKL supports the "SpMV2" sparse inspector-executor routines, then those are used by default.

Synopsis

PetscErrorCode  MatCreateSeqAIJMKL(MPI_Comm comm,PetscInt m,PetscInt n,PetscInt nz,const PetscInt nnz[],Mat *A)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator, set to PETSC_COMM_SELF
m - number of rows
n - number of columns
nz - number of nonzeros per row (same for all rows)
nnz - array containing the number of nonzeros in the various rows (possibly different for each row) or NULL

Output Parameter

A -the matrix

Options Database Keys

-mat_aijmkl_no_spmv2 -disables use of the SpMV2 inspector-executor routines

Notes

If nnz is given then nz is ignored

Keywords

matrix, MKL, sparse, parallel

See Also

MatCreate(), MatCreateMPIAIJMKL(), MatSetValues()

Level:intermediate
Location:
src/mat/impls/aij/seq/aijmkl/aijmkl.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages