Lines Matching refs:req_size
223 inline PetscErrorCode MemoryChunk<E>::claim(const device::StreamBase<U> *stream, size_type req_size… in claim() argument
226 if ((*success = can_claim(stream, req_size, serialize))) { in claim()
228 PetscCall(resize(req_size)); in claim()
247 inline bool MemoryChunk<E>::can_claim(const device::StreamBase<U> *stream, size_type req_size, bool… in can_claim() argument
249 if (open_ && (req_size <= capacity())) { in can_claim()
430 inline PetscErrorCode MemoryBlock<T, A, S>::try_allocate_chunk(size_type req_size, T **ptr, const s… in try_allocate_chunk() argument
434 if (req_size <= size()) { in try_allocate_chunk()
440 if (block_alloced + req_size <= size()) { in try_allocate_chunk()
441 PetscCallCXX(chunks_.emplace_back(block_alloced, req_size)); in try_allocate_chunk()
442 PetscCall(chunks_.back().claim(stream, req_size, success)); in try_allocate_chunk()
444 …Failed to claim chunk (of size %zu) even though block (of size %zu) was empty!", req_size, size()); in try_allocate_chunk()
451 PetscCall(chunk.claim(stream, req_size, success, serialize)); in try_allocate_chunk()
480 …ze %zu) but have now managed to claim it for a second time (and destroyed it)!", req_size, size()); in try_allocate_chunk()
796 …Pool<MemType, StreamType, AllocType, DefaultChunkSize>::allocate(size_t req_size, value_type **ptr… in allocate() argument
803 if (req_size) { in allocate()
804 const auto size = static_cast<size_type>(req_size); in allocate()