Lines Matching refs:PetscCallHIP

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()
48PetscCallHIP(hipMemcpy(hipstruct->val, a->val, a->sliidx[a->totalslices] * sizeof(MatScalar), hipM… in MatSeqSELLHIPCopyToGPU()
51 if (hipstruct->colidx) PetscCallHIP(hipFree(hipstruct->colidx)); in MatSeqSELLHIPCopyToGPU()
52 if (hipstruct->val) PetscCallHIP(hipFree(hipstruct->val)); in MatSeqSELLHIPCopyToGPU()
53 if (hipstruct->sliidx) PetscCallHIP(hipFree(hipstruct->sliidx)); in MatSeqSELLHIPCopyToGPU()
54 if (hipstruct->chunk_slice_map) PetscCallHIP(hipFree(hipstruct->chunk_slice_map)); in MatSeqSELLHIPCopyToGPU()
59PetscCallHIP(hipMalloc((void **)&hipstruct->colidx, a->maxallocmat * sizeof(*hipstruct->colidx))); in MatSeqSELLHIPCopyToGPU()
60 PetscCallHIP(hipMalloc((void **)&hipstruct->val, a->maxallocmat * sizeof(*hipstruct->val))); in MatSeqSELLHIPCopyToGPU()
62PetscCallHIP(hipMemcpy(hipstruct->colidx, a->colidx, a->sliidx[a->totalslices] * sizeof(*a->colidx… in MatSeqSELLHIPCopyToGPU()
63PetscCallHIP(hipMemcpy(hipstruct->val, a->val, a->sliidx[a->totalslices] * sizeof(*a->val), hipMem… in MatSeqSELLHIPCopyToGPU()
65PetscCallHIP(hipMalloc((void **)&hipstruct->sliidx, (a->totalslices + 1) * sizeof(*hipstruct->slii… in MatSeqSELLHIPCopyToGPU()
66PetscCallHIP(hipMemcpy(hipstruct->sliidx, a->sliidx, (a->totalslices + 1) * sizeof(*a->sliidx), hi… in MatSeqSELLHIPCopyToGPU()
67PetscCallHIP(hipMalloc((void **)&hipstruct->chunk_slice_map, a->totalchunks * sizeof(*hipstruct->c… in MatSeqSELLHIPCopyToGPU()
68PetscCallHIP(hipMemcpy(hipstruct->chunk_slice_map, a->chunk_slice_map, a->totalchunks * sizeof(*a-… in MatSeqSELLHIPCopyToGPU()
71 PetscCallHIP(WaitForHIP()); in MatSeqSELLHIPCopyToGPU()
922PetscCallHIP(hipMemset(hipstruct->val, 0, a->sliidx[a->totalslices] * sizeof(*hipstruct->val))); in MatZeroEntries_SeqSELLHIP()