MatCreateDenseCUDA#
Creates a matrix in MATDENSECUDA format using CUDA.
Synopsis#
PetscErrorCode MatCreateDenseCUDA(MPI_Comm comm, PetscInt m, PetscInt n, PetscInt M, PetscInt N, PetscScalar *data, Mat *A)
Collective
Input Parameters#
comm - MPI communicator
m - number of local rows (or
PETSC_DECIDEto have calculated ifMis given)n - number of local columns (or
PETSC_DECIDEto have calculated ifNis given)M - number of global rows (or
PETSC_DECIDEto have calculated ifmis given)N - number of global columns (or
PETSC_DECIDEto have calculated ifnis given)data - optional location of GPU matrix data. Pass
NULLto have PETSc to control matrix memory allocation.
Output Parameter#
A - the matrix
See Also#
Level#
intermediate
Location#
src/mat/impls/dense/mpi/cupm/cuda/matmpidensecuda.cu
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages