Home
last modified time | relevance | path

Searched refs:cudastruct (Results 1 – 1 of 1) sorted by relevance

/petsc/src/mat/impls/sell/seq/seqcuda/
H A Dsellcuda.cu22 static PetscErrorCode MatSeqSELLCUDA_Destroy(Mat_SeqSELLCUDA **cudastruct) in MatSeqSELLCUDA_Destroy() argument
25 if (*cudastruct) { in MatSeqSELLCUDA_Destroy()
26 if ((*cudastruct)->colidx) PetscCallCUDA(cudaFree((*cudastruct)->colidx)); in MatSeqSELLCUDA_Destroy()
27 if ((*cudastruct)->val) PetscCallCUDA(cudaFree((*cudastruct)->val)); in MatSeqSELLCUDA_Destroy()
28 if ((*cudastruct)->sliidx) PetscCallCUDA(cudaFree((*cudastruct)->sliidx)); in MatSeqSELLCUDA_Destroy()
29 if ((*cudastruct)->chunk_slice_map) PetscCallCUDA(cudaFree((*cudastruct)->chunk_slice_map)); in MatSeqSELLCUDA_Destroy()
30 PetscCall(PetscFree(*cudastruct)); in MatSeqSELLCUDA_Destroy()
37 Mat_SeqSELLCUDA *cudastruct = (Mat_SeqSELLCUDA *)A->spptr; in MatSeqSELLCUDACopyToGPU() local
43 if (A->assembled && A->nonzerostate == cudastruct->nonzerostate) { in MatSeqSELLCUDACopyToGPU()
45 …PetscCallCUDA(cudaMemcpy(cudastruct->val, a->val, a->sliidx[a->totalslices] * sizeof(MatScalar), c… in MatSeqSELLCUDACopyToGPU()
[all …]