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


## Options Database Keys

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





## See Also
 `MATSEQDENSECUDA`, `MATMPIDENSECUDA`, `MATSEQDENSEHIP`, `MATMPIDENSEHIP`, `MATDENSE`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/dense/mpi/mpidense.c.html#MATDENSECUDA">src/mat/impls/dense/mpi/mpidense.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/mpi/mpidense.c)


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