Searched refs:Mnz (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/mat/impls/aij/seq/seqcusparse/ |
| H A D | aijcusparse.cu | 207 PetscInt *Mi, *Mj, Mnz; in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() local 215 …Mnz = (Ai[m] - Ai[0]) + (adiag[0] - adiag[m]); // Lnz (without the unit diagonal) + Unz (with the … in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 217 PetscCall(PetscMalloc1(Mnz, &Mj)); // Mj is temp in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 218 PetscCall(PetscMalloc1(Mnz, &Ma)); in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 230 PetscCallCUDA(cudaMalloc(&fs->csrColIdx, sizeof(*fs->csrColIdx) * Mnz)); in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 231 PetscCallCUDA(cudaMalloc(&fs->csrVal, sizeof(*fs->csrVal) * Mnz)); in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 233 …PetscCallCUDA(cudaMemcpy(fs->csrColIdx, Mj, sizeof(*fs->csrColIdx) * Mnz, cudaMemcpyHostToDevice)); in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 244 …PetscCallCUSPARSE(cusparseCreateCsr(&fs->spMatDescr_L, m, m, Mnz, fs->csrRowPtr, fs->csrColIdx, fs… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 250 …PetscCallCUSPARSE(cusparseCreateCsr(&fs->spMatDescr_U, m, m, Mnz, fs->csrRowPtr, fs->csrColIdx, fs… in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() 277 Mnz = Mi[m]; in MatSeqAIJCUSPARSEBuildFactoredMatrix_LU() [all …]
|