Lines Matching refs:chunks_
330 PETSC_NODISCARD size_type num_chunks() const noexcept { return chunks_.size(); } in num_chunks()
336 chunk_list_type chunks_{}; member in Petsc::memory::impl::MemoryBlock
355 PetscCallCXX(chunks_.clear()); in clear_()
385 …ocator_(other.allocator_), size_(util::exchange(other.size_, 0)), chunks_(std::move(other.chunks_)) in MemoryBlock()
400 chunks_ = std::move(other.chunks_); in operator =()
436 const auto was_empty = chunks_.empty(); in try_allocate_chunk()
437 const auto block_alloced = was_empty ? 0 : chunks_.back().total_offset(); 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()
450 for (auto &chunk : chunks_) { in try_allocate_chunk()
475 while (chunks_.back().can_claim(stream, 0, false)) { in try_allocate_chunk()
476 PetscCallCXX(chunks_.pop_back()); in try_allocate_chunk()
477 if (chunks_.empty()) { in try_allocate_chunk()
547 for (auto &chunk : chunks_) { in try_find_chunk()