Searched refs:chunks_ (Results 1 – 1 of 1) sorted by relevance
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::MemoryBlock355 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()[all …]