PetscCUBLASGetHandle#
Get the cuBLAS handle associated with PETSc’s current PetscDeviceContext
Synopsis#
#include "petscdevice.h"
PetscErrorCode PetscCUBLASGetHandle(cublasHandle_t *handle)
Not Collective; No Fortran Support
Output Parameter#
handle - the
cublasHandle_tfor the current context
Note#
The current device context must be of type PETSC_DEVICE_CUDA. The returned handle is owned by
PETSc and must not be destroyed by the caller.
See Also#
PetscDeviceContext, PetscDeviceContextSetUp(), PetscCUSOLVERDnGetHandle(), PetscGetCurrentCUDAStream()
Level#
advanced
Location#
Examples#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages