:orphan:
# MATDENSECUDA
"densecuda" - A matrix type to be used for dense matrices on GPUs. This matrix type is identical to `MATSEQDENSECUDA` when constructed with a single process
communicator, and `MATMPIDENSECUDA` otherwise.


## Options Database Key

- ***-mat_type densecuda -*** sets the matrix type to `MATDENSECUDA` during a call to
`MatSetFromOptions()`





## See Also
 [](ch_matrices), `Mat`, `MATSEQDENSECUDA`, `MATMPIDENSECUDA`, `MATSEQDENSEHIP`,
`MATMPIDENSEHIP`, `MATDENSE`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/dense/mpi/cupm/cuda/matmpidensecuda.cu.html#MATDENSECUDA">src/mat/impls/dense/mpi/cupm/cuda/matmpidensecuda.cu</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex79.c.html">src/ksp/ksp/tutorials/ex79.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/mpi/cupm/cuda/matmpidensecuda.cu)


[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)  
