| /petsc/src/sys/objects/device/impls/ |
| H A D | segmentedmempool.hpp | 98 using size_type = std::size_t; typedef in Petsc::memory::impl::MemoryChunk 100 MemoryChunk(size_type, size_type) noexcept; 101 explicit MemoryChunk(size_type) noexcept; 109 PETSC_NODISCARD size_type start() const noexcept { return start_; } in start() 110 PETSC_NODISCARD size_type size() const noexcept { return size_; } in size() 114 PETSC_NODISCARD size_type capacity() const noexcept { return size_; } in capacity() 115 PETSC_NODISCARD size_type total_offset() const noexcept { return start() + size(); } in total_offset() 120 PetscErrorCode claim(const device::StreamBase<U> *, size_type, bool *, bool = false) noexcept; 122 PETSC_NODISCARD bool can_claim(const device::StreamBase<U> *, size_type, bool) const noexcept; 123 PetscErrorCode resize(size_type) noexcept; [all …]
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmallocator.hpp | 36 using size_type = typename base_type::size_type; typedef in Petsc::device::cupm::HostAllocator 40 static PetscErrorCode allocate(value_type **, size_type, const StreamBase<U> *) noexcept; 44 …static PetscErrorCode uninitialized_copy(value_type *, const value_type *, size_type, const Stream… 49 inline PetscErrorCode HostAllocator<T, P>::allocate(value_type **ptr, size_type n, const StreamBase… in allocate() 67 …ator<T, P>::uninitialized_copy(value_type *dest, const value_type *src, size_type n, const StreamB… in uninitialized_copy() 87 using size_type = typename base_type::size_type; typedef in Petsc::device::cupm::DeviceAllocator 91 static PetscErrorCode allocate(value_type **, size_type, const StreamBase<U> *) noexcept; 95 static PetscErrorCode zero(value_type *, size_type, const StreamBase<U> *) noexcept; 97 …static PetscErrorCode uninitialized_copy(value_type *, const value_type *, size_type, const Stream… 99 static PetscErrorCode set_canary(value_type *, size_type, const StreamBase<U> *) noexcept; [all …]
|
| /petsc/src/sys/objects/cxx/memory/ |
| H A D | object_pool.cxx | 26 constexpr AllocationHeader(size_type, align_type) noexcept; 29 PETSC_NODISCARD static constexpr size_type header_size() noexcept; 30 PETSC_NODISCARD static constexpr size_type buffer_zone_size() noexcept; 32 size_type size; 43 constexpr PoolAllocator::AllocationHeader::AllocationHeader(size_type size, align_type align) noexc… in AllocationHeader() 72 constexpr PoolAllocator::size_type PoolAllocator::AllocationHeader::buffer_zone_size() noexcept in buffer_zone_size() 85 constexpr PoolAllocator::size_type PoolAllocator::AllocationHeader::header_size() noexcept in header_size() 102 constexpr PoolAllocator::size_type PoolAllocator::total_size_(size_type size, align_type align) noe… in total_size_() 174 PetscErrorCode PoolAllocator::clear_(size_type *remaining) noexcept in clear_() 176 size_type remain = 0; in clear_() [all …]
|
| /petsc/include/petsc/private/cpp/ |
| H A D | object_pool.hpp | 62 using size_type = std::size_t; typedef in Petsc::memory::PoolAllocator 64 …using pool_type = std::vector<std::pair<align_type, UnorderedMap<size_type, std::vector<void *>>>… 76 PetscErrorCode try_allocate(void **, size_type, align_type, bool *) noexcept; 77 PetscErrorCode allocate(void **, size_type, align_type, bool * = nullptr) noexcept; 78 PetscErrorCode deallocate(void **, size_type, align_type) noexcept; 80 static PetscErrorCode get_attributes(const void *, size_type *, align_type *) noexcept; 81 static PetscErrorCode unpoison(const void *, size_type *) noexcept; 82 static PetscErrorCode repoison(const void *, size_type) noexcept; 111 PETSC_NODISCARD static constexpr size_type total_size_(size_type, align_type) noexcept; 115 static PetscErrorCode allocate_ptr_(size_type, align_type, void **) noexcept; [all …]
|
| H A D | unordered_map.hpp | 69 using size_type = std::size_t; typedef in Petsc::khash::KHashTable 104 PETSC_NODISCARD size_type bucket_count() const noexcept; 105 PETSC_NODISCARD size_type size() const noexcept; 106 PETSC_NODISCARD size_type capacity() const noexcept; 109 PetscErrorCode reserve(size_type) noexcept; 110 PetscErrorCode resize(size_type) noexcept; 267 size_type count_ = 0; 268 size_type n_occupied_ = 0; 269 size_type upper_bound_ = 0; 445 PetscCallAbort(PETSC_COMM_SELF, reserve(static_cast<size_type>(std::distance(first, last)))); in KHashTable() [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/tests/ |
| H A D | ex3.c | 27 …s(MPI_Comm comm, MatType mat_type, PetscInt n, PetscInt N, TestSizeType size_type, PetscBool call_… in CreateMatWithTestSizes() argument 31 switch (size_type) { in CreateMatWithTestSizes()
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 291 typedef ConstPetscScalarKokkosView::size_type size_type; typedef 294 static constexpr size_type value_count = ValueCount; 310 KOKKOS_INLINE_FUNCTION void operator()(TransposeDotTag, const size_type i, value_type sum) const in operator ()() 313 for (size_type j = 0; j < value_count; ++j) sum[j] += yv[j](i) * xval; in operator ()() 316 KOKKOS_INLINE_FUNCTION void operator()(ConjugateDotTag, const size_type i, value_type sum) const in operator ()() 319 for (size_type j = 0; j < value_count; ++j) sum[j] += PetscConj(yv[j](i)) * xval; in operator ()() 333 for (size_type j = 0; j < value_count; j++) dst[j] += src[j]; in join() 338 for (size_type j = 0; j < value_count; j++) sum[j] = 0.0; in init() 756 typedef ConstPetscScalarKokkosView::size_type size_type; typedef 783 KOKKOS_INLINE_FUNCTION void operator()(const size_type i) const in operator ()() [all …]
|
| /petsc/include/petsc/private/ |
| H A D | veccupmimpl.h | 54 using size_type = PetscCount; member 58 size_type size;
|