:orphan:
# MATAIJVIENNACL
MATMPIAIJVIENNACL= "aijviennacl" = "mpiaijviennacl" - A matrix type to be used for sparse matrices. A matrix type (CSR format) whose data resides on GPUs.
All matrix calculations are performed using the ViennaCL library.

This matrix type is identical to `MATSEQAIJVIENNACL` when constructed with a single process communicator,
and `MATMPIAIJVIENNACL` otherwise.  As a result, for single process communicators,
`MatSeqAIJSetPreallocation()` is supported, and similarly `MatMPIAIJSetPreallocation()` is supported
for communicators controlling multiple processes.  It is recommended that you call both of
the above preallocation routines for simplicity.


## Options Database Keys

- ***-mat_type mpiaijviennacl -*** sets the matrix type to `MATAIJVIENNACL` during a call to `MatSetFromOptions()`





## See Also
 `Mat`, `MatType`, `MatCreateAIJViennaCL()`, `MATSEQAIJVIENNACL`, `MatCreateSeqAIJVIENNACL()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/mpi/mpiviennacl/mpiaijviennacl.cxx.html#MATAIJVIENNACL">src/mat/impls/aij/mpi/mpiviennacl/mpiaijviennacl.cxx</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/aij/mpi/mpiviennacl/mpiaijviennacl.cxx)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
