Lines Matching refs:d_v
36 PetscScalar *d_v; // pointer to the matrix on the GPU member
217 if (!mcu->d_user_alloc) PetscCallCUPM(cupmFreeAsync(mcu->d_v, stream)); in SetPreallocation_()
220 mcu->d_v = user_device_array; in SetPreallocation_()
226 PetscCall(PetscCUPMMallocAsync(&mcu->d_v, size, stream)); in SetPreallocation_()
227 PetscCall(PetscCUPMMemsetAsync(mcu->d_v, 0, size, stream)); in SetPreallocation_()
249 if (!mcu->d_v) PetscCall(SetPreallocation(m, dctx, nullptr)); in HostToDevice_()
256 const auto dest = mcu->d_v; in HostToDevice_()
292 const auto src = MatCUPMCast(m)->d_v; in DeviceToHost_()
1035 if (!mcu->d_user_alloc) PetscCallCUPM(cupmFreeAsync(mcu->d_v, stream)); in Reset()
1177 } else if (!MatCUPMCast(m)->d_v) { in GetArray()
1181 *array = MatCUPMCast(m)->d_v; in GetArray()
1245 mcu->unplacedarray = util::exchange(mcu->d_v, const_cast<PetscScalar *>(array)); in PlaceArray()
1264 PetscCallCUPM(cupmFreeAsync(mcu->d_v, stream)); in ReplaceArray()
1266 mcu->d_v = const_cast<PetscScalar *>(array); in ReplaceArray()
1286 mcu->d_v = util::exchange(mcu->unplacedarray, nullptr); in ResetArray()
1617 …if (opt != MAT_COPY_VALUES && !MatCUPMCast(*B)->d_v) PetscCall(SetPreallocation(*B, dctx, nullptr)… in Duplicate()
1852 const auto device_array = array_offset(MatCUPMCast(A)->d_v); in GetSubMatrix()