Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 84) sorted by relevance

1234

/petsc/src/binding/petsc4py/src/lib-petsc/compat/ !
H A Dmpi.h107 void *handle = 0; in OPENMPI_dlopen_libmpi() local
116 if (!handle) handle = dlopen("libmpi.40.dylib", mode); in OPENMPI_dlopen_libmpi()
118 if (!handle) handle = dlopen("libmpi.20.dylib", mode); in OPENMPI_dlopen_libmpi()
120 if (!handle) handle = dlopen("libmpi.12.dylib", mode); in OPENMPI_dlopen_libmpi()
122 if (!handle) handle = dlopen("libmpi.1.dylib", mode); in OPENMPI_dlopen_libmpi()
124 if (!handle) handle = dlopen("libmpi.0.dylib", mode); in OPENMPI_dlopen_libmpi()
127 if (!handle) handle = dlopen("libmpi.dylib", mode); in OPENMPI_dlopen_libmpi()
135 if (!handle) handle = dlopen("libmpi_ibm.so.2", mode); in OPENMPI_dlopen_libmpi()
136 if (!handle) handle = dlopen("libmpi_ibm.so.1", mode); in OPENMPI_dlopen_libmpi()
137 if (!handle) handle = dlopen("libmpi_ibm.so", mode); in OPENMPI_dlopen_libmpi()
[all …]
/petsc/src/ksp/ksp/utils/lmvm/blas_cyclic/cupm/ !
H A Dblas_cyclic_cupm_impl.hpp32 PetscErrorCode BLASCyclic<T>::axpby_dispatch(cupmBlasHandle_t handle, cupmBlasInt_t n, PetscScalar … in axpby_dispatch() argument
41 PetscCallCUPMBLAS(cupmBlasXcopy(handle, n, x_, 1, y_, y_stride)); in axpby_dispatch()
43 if (beta != 1.0) PetscCallCUPMBLAS(cupmBlasXscal(handle, n, cbeta, y_, y_stride)); in axpby_dispatch()
44 if (alpha != 0.0) PetscCallCUPMBLAS(cupmBlasXaxpy(handle, n, calpha, x_, 1, y_, y_stride)); in axpby_dispatch()
55 cupmBlasHandle_t handle; in axpby() local
63 PetscCall(GetHandlesFrom_(dctx, &handle)); in axpby()
65 PetscCallCUPMBLAS(cupmBlasGetPointerMode(handle, &pointer_mode)); in axpby()
66 PetscCallCUPMBLAS(cupmBlasSetPointerMode(handle, CUPMBLAS_POINTER_MODE_HOST)); in axpby()
68 PetscCall(axpby_dispatch(handle, m, alpha, x, beta, y, y_stride_)); in axpby()
72 …PetscCall(axpby_dispatch(handle, diff, alpha, &x[i_oldest], beta, &y[i_oldest * y_stride], y_strid… in axpby()
[all …]
/petsc/src/sys/objects/device/impls/cupm/cuda/ !
H A Dcupmcontext.cu17 PetscErrorCode PetscCUBLASGetHandle(cublasHandle_t *handle) in PetscCUBLASGetHandle() argument
22 PetscAssertPointer(handle, 1); in PetscCUBLASGetHandle()
24 PetscCall(PetscDeviceContextGetBLASHandle_Internal(dctx, handle)); in PetscCUBLASGetHandle()
28 PetscErrorCode PetscCUSOLVERDnGetHandle(cusolverDnHandle_t *handle) in PetscCUSOLVERDnGetHandle() argument
33 PetscAssertPointer(handle, 1); in PetscCUSOLVERDnGetHandle()
35 PetscCall(PetscDeviceContextGetSOLVERHandle_Internal(dctx, handle)); in PetscCUSOLVERDnGetHandle()
42 void *handle; in PetscGetCurrentCUDAStream() local
47 PetscCall(PetscDeviceContextGetStreamHandle(dctx, &handle)); in PetscGetCurrentCUDAStream()
48 *stream = *(cudaStream_t *)handle; in PetscGetCurrentCUDAStream()
/petsc/src/sys/objects/device/impls/cupm/hip/ !
H A Dcupmcontext.hip.cxx25 PetscErrorCode PetscHIPBLASGetHandle(hipblasHandle_t *handle) in PetscHIPBLASGetHandle() argument
30 PetscAssertPointer(handle, 1); in PetscHIPBLASGetHandle()
32 PetscCall(PetscDeviceContextGetBLASHandle_Internal(dctx, handle)); in PetscHIPBLASGetHandle()
36 PetscErrorCode PetscHIPSOLVERGetHandle(hipsolverHandle_t *handle) in PetscHIPSOLVERGetHandle() argument
41 PetscAssertPointer(handle, 1); in PetscHIPSOLVERGetHandle()
43 PetscCall(PetscDeviceContextGetSOLVERHandle_Internal(dctx, handle)); in PetscHIPSOLVERGetHandle()
50 void *handle; in PetscGetCurrentHIPStream() local
55 PetscCall(PetscDeviceContextGetStreamHandle(dctx, &handle)); in PetscGetCurrentHIPStream()
56 *stream = *(hipStream_t *)handle; in PetscGetCurrentHIPStream()
/petsc/src/sys/dll/ !
H A Ddemangle.c37 void *handle = PETSC_NULLPTR; in PetscDemangleSymbol() local
48 if (!handle) handle = dlopen("libc++.1.dylib", mode); in PetscDemangleSymbol()
50 if (!handle) handle = dlopen("libstdc++.so.6", mode); in PetscDemangleSymbol()
52 if (handle) { in PetscDemangleSymbol()
53 symbol = dlsym(handle, "__cxa_demangle"); in PetscDemangleSymbol()
54 dlclose(handle); in PetscDemangleSymbol()
H A Ddlimpl.c43 PetscErrorCode PetscDLOpen(const char name[], PetscDLMode mode, PetscDLHandle *handle) in PetscDLOpen() argument
50 PetscAssertPointer(handle, 3); in PetscDLOpen()
55 *handle = (PetscDLHandle)0; in PetscDLOpen()
118 *handle = (PetscDLHandle)dlhandle; in PetscDLOpen()
134 PetscErrorCode PetscDLClose(PetscDLHandle *handle) in PetscDLClose() argument
137 PetscAssertPointer(handle, 1); in PetscDLClose()
144 if (FreeLibrary((dlhandle_t)*handle) == 0) { in PetscDLClose()
165 if (dlclose((dlhandle_t)*handle) < 0) { in PetscDLClose()
182 *handle = NULL; in PetscDLClose()
209 PetscErrorCode PetscDLSym(PetscDLHandle handle, const char symbol[], void **value) in PetscDLSym() argument
[all …]
H A Ddl.c13 PetscDLHandle handle; member
130 PetscDLHandle handle; in PetscDLLibraryOpen() local
163 PetscCall(PetscDLOpen(par2, PETSC_DL_DECIDE, &handle)); in PetscDLLibraryOpen()
175 PetscCall(PetscDLSym(handle, registername, (void **)&func)); in PetscDLLibraryOpen()
185 (*entry)->handle = handle; in PetscDLLibraryOpen()
267 PetscCall(PetscDLSym(nlist->handle, symbol, value)); in PetscDLLibrarySym()
275 PetscCall(PetscDLSym(list->handle, symbol, value)); in PetscDLLibrarySym()
500 PetscCall(PetscDLClose(&tail->handle)); in PetscDLLibraryClose()
/petsc/src/ksp/ksp/utils/lmvm/dense/cd_cupm/ !
H A Dcd_cupm.cxx29 cupmBlasHandle_t handle; in SolveInPlace() local
36 PetscCall(GetHandlesFrom_(dctx, &handle)); in SolveInPlace()
38 …PetscCallCUPMBLAS(cupmBlasXtrsv(handle, CUPMBLAS_FILL_MODE_UPPER, hermitian_transpose ? CUPMBLAS_O… in SolveInPlace()
53 cupmBlasHandle_t handle; in SolveInPlaceCyclic() local
63 PetscCall(GetHandlesFrom_(dctx, &handle)); in SolveInPlaceCyclic()
65 PetscCallCUPMBLAS(cupmBlasGetPointerMode(handle, &pointer_mode)); in SolveInPlaceCyclic()
66 PetscCallCUPMBLAS(cupmBlasSetPointerMode(handle, CUPMBLAS_POINTER_MODE_HOST)); in SolveInPlaceCyclic()
68 …if (n_new > 0) PetscCallCUPMBLAS(cupmBlasXtrsv(handle, CUPMBLAS_FILL_MODE_UPPER, CUPMBLAS_OP_N, CU… in SolveInPlaceCyclic()
69 …if (n_new > 0 && n_old > 0) PetscCallCUPMBLAS(cupmBlasXgemv(handle, CUPMBLAS_OP_N, n_old, n_new, &… in SolveInPlaceCyclic()
70 …if (n_old > 0) PetscCallCUPMBLAS(cupmBlasXtrsv(handle, CUPMBLAS_FILL_MODE_UPPER, CUPMBLAS_OP_N, CU… in SolveInPlaceCyclic()
[all …]
/petsc/include/ !
H A Dpetscdevice_hip.h142 static inline hipsolverStatus_t hipsolverGetStream(hipsolverHandle_t handle, hipStream_t *stream) in hipsolverGetStream() argument
144 return cusolverDnGetStream(handle, stream); in hipsolverGetStream()
148 static inline hipsolverStatus_t hipsolverSetStream(hipsolverHandle_t handle, hipStream_t stream) in hipsolverSetStream() argument
150 return cusolveDnSetStream(handle, stream); in hipsolverSetStream()
171 static inline hipsolverStatus_t hipsolverGetStream(hipsolverHandle_t handle, hipStream_t *stream) in hipsolverGetStream() argument
173 return rocblas_get_stream(handle, stream); in hipsolverGetStream()
177 static inline hipsolverStatus_t hipsolverSetStream(hipsolverHandle_t handle, hipStream_t stream) in hipsolverSetStream() argument
179 return rocblas_set_stream(handle, stream); in hipsolverSetStream()
/petsc/src/ksp/pc/impls/bjacobi/bjkokkos/ !
H A Dbjkokkoskernels.kokkos.cxx61 …onst double tol, const int ortho_strategy, const int scratch_pad_level, KrylovHandleType &handle) : in Functor_TestBatchedTeamVectorGMRES()
62 … _tol(tol), _ortho_strategy(ortho_strategy), _scratch_pad_level(scratch_pad_level), _handle(handle) in Functor_TestBatchedTeamVectorGMRES()
67 …ion, const double tol, int ortho_strategy, const int scratch_pad_level, KrylovHandleType &handle) : in Functor_TestBatchedTeamVectorGMRES()
68 … _tol(tol), _ortho_strategy(ortho_strategy), _scratch_pad_level(scratch_pad_level), _handle(handle) in Functor_TestBatchedTeamVectorGMRES()
252 KrylovHandleType handle(Nsolves, Nsolves_team, n_iterations, true); in PCApply_BJKOKKOSKERNELS() local
253 handle.Arnoldi_view = Scalar3DViewType("", Nsolves, n_iterations, Nloc + n_iterations + 3); in PCApply_BJKOKKOSKERNELS()
255 …x, batch_b, Nsolves_team, -1, vector_length, n_iterations, tol, ortho_strategy, 0, handle).run(pc); in PCApply_BJKOKKOSKERNELS()
278 …z; bid++) PetscCall(PetscPrintf(PetscObjectComm((PetscObject)A), "%3D ", handle.get_iteration_host… in PCApply_BJKOKKOSKERNELS()
283 if ((ii = handle.get_iteration_host(idx + bid * jac->dm_Nf[dmIdx])) > count) count = ii; in PCApply_BJKOKKOSKERNELS()
296 if (handle.is_converged_host()) { in PCApply_BJKOKKOSKERNELS()
[all …]
/petsc/src/sys/objects/device/interface/ !
H A Dglobal_dcontext.cxx31 void *handle; in PetscSetDefaultCUPMStreamFromDeviceContext() local
33 PetscCall(PetscDeviceContextGetStreamHandle_Internal(dctx, &handle)); in PetscSetDefaultCUPMStreamFromDeviceContext()
34 PetscDefaultCudaStream = *static_cast<cudaStream_t *>(handle); in PetscSetDefaultCUPMStreamFromDeviceContext()
39 void *handle; in PetscSetDefaultCUPMStreamFromDeviceContext() local
41 PetscCall(PetscDeviceContextGetStreamHandle_Internal(dctx, &handle)); in PetscSetDefaultCUPMStreamFromDeviceContext()
42 PetscDefaultHipStream = *static_cast<hipStream_t *>(handle); in PetscSetDefaultCUPMStreamFromDeviceContext()
/petsc/src/sys/objects/device/impls/cupm/ !
H A Dcupmcontext.hpp96 auto &handle = blashandles_[dctx->device->deviceId]; in initialize_handle_() local
99 if (!handle) { in initialize_handle_()
103 const auto cberr = cupmBlasCreate(handle.ptr_to()); in initialize_handle_()
115 PetscCallCUPMBLAS(cupmBlasSetStream(handle, dci->stream.get_stream())); in initialize_handle_()
116 dci->blas = handle; in initialize_handle_()
123 auto &handle = solverhandles_[dctx->device->deviceId]; in initialize_handle_() local
126 if (!handle) { in initialize_handle_()
130 const auto cerr = cupmSolverCreate(&handle); in initialize_handle_()
142 PetscCallCUPMSOLVER(cupmSolverSetStream(handle, dci->stream.get_stream())); in initialize_handle_()
143 dci->solver = handle; in initialize_handle_()
[all …]
/petsc/src/sys/fileio/ !
H A Dfdir.c105 intptr_t handle; in PetscRMTree() local
107 long handle; in PetscRMTree() local
112 handle = _findfirst(loc, &data); in PetscRMTree()
113 if (handle == -1) { in PetscRMTree()
121 while (_findnext(handle, &data) != -1) { in PetscRMTree()
132 _findclose(handle); in PetscRMTree()
/petsc/src/mat/impls/h2opus/cuda/ !
H A Dmath2opus.cu136 distributedH2OpusHandle_t handle; member
138 h2opusHandle_t handle;
204 h2opusDestroyDistributedHandle(a->handle); in MatDestroy_H2OPUS()
206 h2opusDestroyHandle(a->handle); in MatDestroy_H2OPUS()
337 h2opusHandle_t handle = h2opus->handle->handle; in MatMultNKernel_H2OPUS() local
339 h2opusHandle_t handle = h2opus->handle; in MatMultNKernel_H2OPUS() local
383 …Trans, */ h2opus->s, *h2opus->dist_hmatrix, uxx, blda, 0.0, uyy, clda, B->cmap->N, h2opus->handle); in MatMultNKernel_H2OPUS()
387 …rans : H2Opus_NoTrans, h2opus->s, *h2opus->hmatrix, uxx, blda, 0.0, uyy, clda, B->cmap->N, handle); in MatMultNKernel_H2OPUS()
423 …s, */ h2opus->s, *h2opus->dist_hmatrix_gpu, uxx, blda, 0.0, uyy, clda, B->cmap->N, h2opus->handle); in MatMultNKernel_H2OPUS()
427 … : H2Opus_NoTrans, h2opus->s, *h2opus->hmatrix_gpu, uxx, blda, 0.0, uyy, clda, B->cmap->N, handle); in MatMultNKernel_H2OPUS()
[all …]
/petsc/src/ksp/pc/impls/pbjacobi/cuda/ !
H A Dpbjacobi_cuda.cu37 cublasHandle_t handle; in PCApplyOrTranspose_PBJacobi_CUDA() local
45 PetscCall(PetscCUBLASGetHandle(&handle)); in PCApplyOrTranspose_PBJacobi_CUDA()
46 …PetscCallCUBLAS(cublasSetPointerMode(handle, CUBLAS_POINTER_MODE_HOST)); /* alpha, beta are on hos… in PCApplyOrTranspose_PBJacobi_CUDA()
51 …PetscCallCUBLAS(cublasXgemvStridedBatched(handle, op, bs, bs, &alpha, A, bs, bs * bs, xx, 1, bs, &… in PCApplyOrTranspose_PBJacobi_CUDA()
/petsc/src/sys/objects/kokkos/ !
H A Dkinit.kokkos.cxx90 void *handle; in PetscKokkosInitializeCheck() local
91 PetscCall(PetscDeviceContextGetStreamHandle(dctx, &handle)); // Kind of PetscDefaultSyclStream in PetscKokkosInitializeCheck()
92 …cCallCXX(PetscKokkosExecutionSpacePtr = new Kokkos::DefaultExecutionSpace(*(sycl::queue *)handle)); in PetscKokkosInitializeCheck()
/petsc/src/sys/yaml/src/ !
H A Dscanner.c701 yaml_mark_t mark, yaml_char_t **handle, yaml_char_t **prefix);
712 yaml_mark_t start_mark, yaml_char_t **handle);
1995 yaml_char_t *handle = NULL, *prefix = NULL; in yaml_parser_scan_directive() local
2033 &handle, &prefix)) in yaml_parser_scan_directive()
2040 TAG_DIRECTIVE_TOKEN_INIT(*token, handle, prefix, in yaml_parser_scan_directive()
2090 yaml_free(handle); in yaml_parser_scan_directive()
2252 yaml_mark_t start_mark, yaml_char_t **handle, yaml_char_t **prefix) in yaml_parser_scan_tag_directive_value() argument
2303 *handle = handle_value; in yaml_parser_scan_tag_directive_value()
2381 yaml_char_t *handle = NULL; in yaml_parser_scan_tag() local
2395 handle = YAML_MALLOC(1); in yaml_parser_scan_tag()
[all …]
H A Dparser.c425 yaml_free(tag_directives.end[-1].handle); in yaml_parser_parse_document_start()
489 yaml_free(tag_directive.handle); in yaml_parser_parse_document_end()
566 tag_handle = token->data.tag.handle; in yaml_parser_parse_node()
577 tag_handle = token->data.tag.handle; in yaml_parser_parse_node()
605 if (strcmp((char *)tag_directive->handle, (char *)tag_handle) == 0) { in yaml_parser_parse_node()
1283 value.handle = token->data.tag_directive.handle; in yaml_parser_process_directives()
1299 default_tag_directive->handle; default_tag_directive++) { in yaml_parser_process_directives()
1328 yaml_free(tag_directive.handle); in yaml_parser_process_directives()
1348 if (strcmp((char *)value.handle, (char *)tag_directive->handle) == 0) { in yaml_parser_append_tag_directive()
1356 copy.handle = yaml_strdup(value.handle); in yaml_parser_append_tag_directive()
[all …]
/petsc/src/mat/impls/aij/seq/seqhipsparse/ !
H A Daijhipsparse.hip.cxx340 …PetscCallHIPSPARSE(hipsparseXcsrsv_buffsize(hipsparseTriFactors->handle, loTriFactor->solveOp, loT… in MatSeqAIJHIPSPARSEBuildILULowerTriMatrix()
345 …PetscCallHIPSPARSE(hipsparseXcsrsv_analysis(hipsparseTriFactors->handle, loTriFactor->solveOp, loT… in MatSeqAIJHIPSPARSEBuildILULowerTriMatrix()
456 …PetscCallHIPSPARSE(hipsparseXcsrsv_buffsize(hipsparseTriFactors->handle, upTriFactor->solveOp, upT… in MatSeqAIJHIPSPARSEBuildILUUpperTriMatrix()
461 …PetscCallHIPSPARSE(hipsparseXcsrsv_analysis(hipsparseTriFactors->handle, upTriFactor->solveOp, upT… in MatSeqAIJHIPSPARSEBuildILUUpperTriMatrix()
620 …PetscCallHIPSPARSE(hipsparseXcsrsv_buffsize(hipsparseTriFactors->handle, upTriFactor->solveOp, upT… in MatSeqAIJHIPSPARSEBuildICCTriMatrices()
625 …PetscCallHIPSPARSE(hipsparseXcsrsv_analysis(hipsparseTriFactors->handle, upTriFactor->solveOp, upT… in MatSeqAIJHIPSPARSEBuildICCTriMatrices()
663 …PetscCallHIPSPARSE(hipsparseXcsrsv_buffsize(hipsparseTriFactors->handle, loTriFactor->solveOp, loT… in MatSeqAIJHIPSPARSEBuildICCTriMatrices()
668 …PetscCallHIPSPARSE(hipsparseXcsrsv_analysis(hipsparseTriFactors->handle, loTriFactor->solveOp, loT… in MatSeqAIJHIPSPARSEBuildICCTriMatrices()
835 …PetscCallHIPSPARSE(hipsparse_csr2csc(hipsparseTriFactors->handle, loTriFactor->csrMat->num_rows, l… in MatSeqAIJHIPSPARSEAnalyzeTransposeForSolve()
850 …PetscCallHIPSPARSE(hipsparseXcsrsv_buffsize(hipsparseTriFactors->handle, loTriFactorT->solveOp, lo… in MatSeqAIJHIPSPARSEAnalyzeTransposeForSolve()
[all …]
/petsc/src/mat/impls/aij/seq/seqcusparse/ !
H A Daijcusparse.cu263 …PetscCallCUSPARSE(cusparseSpSV_bufferSize(fs->handle, CUSPARSE_OPERATION_NON_TRANSPOSE, &PETSC_CUS… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU()
265 …PetscCallCUSPARSE(cusparseSpSV_bufferSize(fs->handle, CUSPARSE_OPERATION_NON_TRANSPOSE, &PETSC_CUS… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU()
290 …if (fs->csrVal) PetscCallCUSPARSE(cusparseSpSV_updateMatrix(fs->handle, fs->spsvDescr_L, fs->csrVa… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU()
291 …if (fs->csrVal) PetscCallCUSPARSE(cusparseSpSV_updateMatrix(fs->handle, fs->spsvDescr_U, fs->csrVa… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU()
296 …PetscCallCUSPARSE(cusparseSpSV_analysis(fs->handle, CUSPARSE_OPERATION_NON_TRANSPOSE, &PETSC_CUSPA… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU()
298 …PetscCallCUSPARSE(cusparseSpSV_analysis(fs->handle, CUSPARSE_OPERATION_NON_TRANSPOSE, &PETSC_CUSPA… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU()
395 …PetscCallCUSPARSE(cusparseXcsrsv_buffsize(cusparseTriFactors->handle, loTriFactor->solveOp, loTriF… in MatSeqAIJCUSPARSEBuildILULowerTriMatrix()
401 …PetscCallCUSPARSE(cusparseXcsrsv_analysis(cusparseTriFactors->handle, loTriFactor->solveOp, loTriF… in MatSeqAIJCUSPARSEBuildILULowerTriMatrix()
524 …PetscCallCUSPARSE(cusparseXcsrsv_buffsize(cusparseTriFactors->handle, upTriFactor->solveOp, upTriF… in MatSeqAIJCUSPARSEBuildILUUpperTriMatrix()
530 …PetscCallCUSPARSE(cusparseXcsrsv_analysis(cusparseTriFactors->handle, upTriFactor->solveOp, upTriF… in MatSeqAIJCUSPARSEBuildILUUpperTriMatrix()
[all …]
/petsc/include/petsc/private/ !
H A Dcupmblasinterface.hpp431 …static PetscErrorCode PetscCUPMBlasSetPointerModeFromPointer(cupmBlasHandle_t handle, const void *… in PetscCUPMBlasSetPointerModeFromPointer()
437 …PetscCallCUPMBLAS(cupmBlasSetPointerMode(handle, PetscMemTypeDevice(mtype) ? CUPMBLAS_POINTER_MODE… in PetscCUPMBlasSetPointerModeFromPointer()
459 …MBlasPointerModeGuard(const cupmBlasHandle_t &handle, cupmBlasPointerMode_t mode) noexcept : handl… in CUPMBlasPointerModeGuard() argument
462 PetscCallCUPMBLASAbort(PETSC_COMM_SELF, cupmBlasGetPointerMode(handle, &this->old_));
467 PetscCallCUPMBLASAbort(PETSC_COMM_SELF, cupmBlasSetPointerMode(handle, mode));
472 …PointerModeGuard(const cupmBlasHandle_t &handle, PetscMemType mtype) noexcept : CUPMBlasPointerMod… in CUPMBlasPointerModeGuard() argument
H A Ddeviceimpl.h306 …line PetscErrorCode PetscDeviceContextGetBLASHandle_Internal(PetscDeviceContext dctx, void *handle) in PetscDeviceContextGetBLASHandle_Internal() argument
311 PetscUseTypeMethod(dctx, getblashandle, handle); in PetscDeviceContextGetBLASHandle_Internal()
315 …ne PetscErrorCode PetscDeviceContextGetSOLVERHandle_Internal(PetscDeviceContext dctx, void *handle) in PetscDeviceContextGetSOLVERHandle_Internal() argument
320 PetscUseTypeMethod(dctx, getsolverhandle, handle); in PetscDeviceContextGetSOLVERHandle_Internal()
324 …e PetscErrorCode PetscDeviceContextGetStreamHandle_Internal(PetscDeviceContext dctx, void **handle) in PetscDeviceContextGetStreamHandle_Internal() argument
329 PetscAssertPointer(handle, 2); in PetscDeviceContextGetStreamHandle_Internal()
330 PetscUseTypeMethod(dctx, getstreamhandle, handle); in PetscDeviceContextGetStreamHandle_Internal()
H A Dcupmsolverinterface.hpp109 …PETSC_NODISCARD static cupmSolverError_t cupmSolverXpotrs(cupmSolverHandle_t handle, cupmSolverFil… in PETSC_CUPMSOLVER_ALIAS_BLAS_FUNCTION()
111 return cupmSolverXpotrs_p(handle, uplo, n, nrhs, A, lda, B, ldb, dev_info); in PETSC_CUPMSOLVER_ALIAS_BLAS_FUNCTION()
128 …PETSC_NODISCARD static cupmSolverError_t cupmSolverXgetrf(cupmSolverHandle_t handle, cupmBlasInt_t… in PETSC_CUPMSOLVER_ALIAS_BLAS_FUNCTION()
130 return cupmSolverXgetrf_p(handle, m, n, A, lda, work, dev_ipiv, dev_info); in PETSC_CUPMSOLVER_ALIAS_BLAS_FUNCTION()
152 …PETSC_NODISCARD static cupmSolverError_t cupmSolverXgetrs(cupmSolverHandle_t handle, cupmSolverOpe… in PETSC_CUPMSOLVER_ALIAS_BLAS_FUNCTION()
154 return cupmSolverXgetrs_p(handle, op, n, nrhs, A, lda, dev_ipiv, B, ldb, dev_info); in PETSC_CUPMSOLVER_ALIAS_BLAS_FUNCTION()
/petsc/src/mat/impls/dense/seq/cupm/ !
H A Dmatseqdensecupm.hpp378 cupmSolverHandle_t handle; in Factor() local
383 PetscCall(GetHandles_(&dctx, &handle, &stream)); in Factor()
396 return cupmSolverXgetrf_bufferSize(handle, m, n, da.cupmdata(), lda, fact_lwork); in Factor()
404 …PetscCallCUPMSOLVER(cupmSolverXgetrf(handle, m, n, da.cupmdata(), lda, mcu->d_fact_work, mcu->d_fa… in Factor()
418 cupmSolverHandle_t handle; in Solve() local
421 PetscCall(GetHandlesFrom_(dctx, &handle)); in Solve()
436 handle, op, m, nrhs, da.cupmdata(), lda, fact_ipiv, x, ldx, lwork in Solve()
442 …PetscCallCUPMSOLVER(cupmSolverXgetrs(handle, op, m, nrhs, da.cupmdata(), lda, fact_ipiv, x, ldx, m… in Solve()
462 cupmSolverHandle_t handle; in Factor() local
468 PetscCall(GetHandles_(&dctx, &handle, &stream)); in Factor()
[all …]
/petsc/src/sys/objects/ftn-custom/ !
H A Dzinheritf.c39 PETSC_EXTERN void petscobjectaddoptionshandler_(PetscObject *obj, void (*handle)(PetscObject *, Pet… in petscobjectaddoptionshandler_()
41 …tscObject)*obj, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.handler, (PetscFortranCallbackFn *)handle, ctx); in petscobjectaddoptionshandler_()

1234