Lines Matching refs:id

49   PetscObjectId id    = 0;                  // id of allocation  member
66 …pe mtype_, PetscObjectId id_, std::size_t size_) noexcept : mtype(mtype_), id(id_), size(size_) { } in PointerAttributes()
70 return (mtype == other.mtype) && (id == other.id) && (size == other.size); in operator ==()
183 …ame: %s, type: %s) can only handle %s host memory", PetscObjectCast(dctx)->id, PetscObjectCast(dct… in PetscDeviceCheckCapable_Private()
190 …TSC_RESTRICT ptr, PetscMemType mtype, std::size_t size, PetscObjectId *PETSC_RESTRICT id = nullptr) in PetscDeviceRegisterMemory_Private() argument
212 if (id) *id = newid; in PetscDeviceRegisterMemory_Private()
224 …PetscCheck(PointerAttributes(mtype, old.id, size) == old, PETSC_COMM_SELF, PETSC_ERR_LIB, "Pointer… in PetscDeviceRegisterMemory_Private()
225 … PetscMemTypeToString(old.mtype), old.size, old.id, PetscMemTypeToString(mtype), size, old.id); in PetscDeviceRegisterMemory_Private()
227 if (id) *id = it->second.id; in PetscDeviceRegisterMemory_Private()
327 PetscObjectId id = 0; in PetscDeviceAllocate_Private() local
349 PetscCall(PetscDeviceRegisterMemory_Private(*ptr, mtype, n, &id)); in PetscDeviceAllocate_Private()
352 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, id, PETSC_MEMORY_ACCESS_WRITE, "memory allocati… in PetscDeviceAllocate_Private()
411 …t64_FMT ", size %zu bytes)", ptr, it->first, PetscMemTypeToString(attr.mtype), attr.id, attr.size); in PetscDeviceDeallocate_Private()
417 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, attr.id, PETSC_MEMORY_ACCESS_WRITE, "memory dea… in PetscDeviceDeallocate_Private()
483 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, src_attr.id, PETSC_MEMORY_ACCESS_READ, "memory … in PetscDeviceMemcpy()
484 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, dest_attr.id, PETSC_MEMORY_ACCESS_WRITE, "memor… in PetscDeviceMemcpy()
552 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, attr.id, PETSC_MEMORY_ACCESS_WRITE, "memory set… in PetscDeviceMemset()