Home
last modified time | relevance | path

Searched refs:pool_ (Results 1 – 5 of 5) sorted by relevance

/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmevent.hpp32 std::stack<cupmEvent_t> pool_; member in Petsc::device::cupm::CUPMEventPool
39 while (!pool_.empty()) { in finalize_()
40 PetscCallCUPM(cupmEventDestroy(std::move(pool_.top()))); in finalize_()
41 PetscCallCXX(pool_.pop()); in finalize_()
51 if (pool_.empty()) { in allocate()
55 PetscCallCXX(*event = std::move(pool_.top())); in allocate()
56 PetscCallCXX(pool_.pop()); in allocate()
68 PetscCallCXX(pool_.push(std::move(event))); in deallocate()
/petsc/include/petsc/private/cpp/
H A Dobject_pool.hpp94 explicit LockGuard(PoolAllocator *pool) noexcept : pool_{pool} { ++pool_->locked_; } in LockGuard()
100 std::unique_ptr<PoolAllocator, PoolUnlocker> pool_{}; member in Petsc::memory::PoolAllocator::LockGuard
106 pool_type pool_; member in Petsc::memory::PoolAllocator
119 PETSC_NODISCARD pool_type &pool() noexcept { return pool_; } in pool()
120 PETSC_NODISCARD const pool_type &pool() const noexcept { return pool_; } in pool()
207 static allocator_type pool_; member in Petsc::memory::PoolAllocated
/petsc/src/sys/objects/device/impls/
H A Dsegmentedmempool.hpp706 pool_type pool_; member in Petsc::memory::SegmentedMemoryPool
729 PetscCallCXX(pool_.emplace_back(&allocator_, block_size, stream)); in make_block_()
730 …tscInfo(nullptr, "Allocated new block of size %zu, total %zu blocks\n", block_size, pool_.size())); in make_block_()
746 PetscCallCXX(pool_.clear()); in finalize_()
758 for (auto &block : pool_) { in allocate_()
763 …block in the pool (%zu blocks) (requested size %zu), allocating new block\n", pool_.size(), size)); in allocate_()
767 PetscCall(pool_.back().try_allocate_chunk(size, ptr, stream, &found)); in allocate_()
768 …mory chunk (of size %zu) from newly allocated memory block (size %zu)", size, pool_.back().size()); in allocate_()
837 for (auto &block : pool_) { in deallocate()
882 for (auto &block : pool_) { in reallocate()
/petsc/src/sys/objects/device/interface/
H A Dmemory.cxx18 typename PoolAllocated::allocator_type PoolAllocated::pool_{};
/petsc/src/sys/objects/cxx/memory/
H A Dobject_pool.cxx634 return pool_; in pool()