Searched refs:hipstruct (Results 1 – 1 of 1) sorted by relevance
25 static PetscErrorCode MatSeqSELLHIP_Destroy(Mat_SeqSELLHIP **hipstruct) in MatSeqSELLHIP_Destroy() argument28 if (*hipstruct) { in MatSeqSELLHIP_Destroy()29 if ((*hipstruct)->colidx) PetscCallHIP(hipFree((*hipstruct)->colidx)); in MatSeqSELLHIP_Destroy()30 if ((*hipstruct)->val) PetscCallHIP(hipFree((*hipstruct)->val)); in MatSeqSELLHIP_Destroy()31 if ((*hipstruct)->sliidx) PetscCallHIP(hipFree((*hipstruct)->sliidx)); in MatSeqSELLHIP_Destroy()32 if ((*hipstruct)->chunk_slice_map) PetscCallHIP(hipFree((*hipstruct)->chunk_slice_map)); in MatSeqSELLHIP_Destroy()33 PetscCall(PetscFree(*hipstruct)); in MatSeqSELLHIP_Destroy()40 Mat_SeqSELLHIP *hipstruct = (Mat_SeqSELLHIP *)A->spptr; in MatSeqSELLHIPCopyToGPU() local46 if (A->assembled && A->nonzerostate == hipstruct->nonzerostate) { in MatSeqSELLHIPCopyToGPU()48 …PetscCallHIP(hipMemcpy(hipstruct->val, a->val, a->sliidx[a->totalslices] * sizeof(MatScalar), hipM… in MatSeqSELLHIPCopyToGPU()[all …]