MatCreateDenseCUDA#
Creates a matrix in MATDENSECUDA
format using CUDA.
Synopsis#
#include "petscmat.h"
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_DECIDE
to have calculated ifM
is given)n - number of local columns (or
PETSC_DECIDE
to have calculated ifN
is given)M - number of global rows (or
PETSC_DECIDE
to have calculated ifm
is given)N - number of global columns (or
PETSC_DECIDE
to have calculated ifn
is given)data - optional location of GPU matrix data. Use
NULL
for PETSc to control matrix memory allocation.
Output Parameter#
A - the matrix
See Also#
Matrices, Mat
, MATDENSECUDA
, MatCreate()
, MatCreateDense()
Level#
intermediate
Location#
src/mat/impls/dense/mpi/mpidense.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages