Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 12 of 12) sorted by relevance

/petsc/src/sys/utils/
H A Dsegbuffer.c5 PetscCount alloc; /* number of units allocated */ member
24 PetscCount alloc; in PetscSegBufferAlloc_Private() local
30alloc = PetscMax(s->used + count, PetscMin(1000000 / ((PetscCount)seg->unitbytes) + 1, s->alloc + … in PetscSegBufferAlloc_Private()
31 …PetscCall(PetscMalloc(offsetof(struct _PetscSegBufferLink, u) + alloc * seg->unitbytes, &newlink)); in PetscSegBufferAlloc_Private()
36 newlink->alloc = alloc; in PetscSegBufferAlloc_Private()
67 head->alloc = expected; in PetscSegBufferCreate()
96 if (PetscUnlikely(s->used + count > s->alloc)) PetscCall(PetscSegBufferAlloc_Private(seg, count)); in PetscSegBufferGet()
/petsc/src/mat/utils/
H A Dpheap.c11 PetscInt alloc; /* length of array */ member
70 h->alloc = maxsize + ARITY; /* We waste all but one slot (loc=1) in the first ARITY slots */ in PetscHeapCreate()
71 h->stash = h->alloc; in PetscHeapCreate()
72 PetscCall(PetscCalloc1(h->alloc, &h->base)); in PetscHeapCreate()
86 …d exceed allocation %" PetscInt_FMT " (%" PetscInt_FMT " stashed)", h->alloc, h->alloc - h->stash); in PetscHeapAdd()
155 while (h->stash < h->alloc) { in PetscHeapUnstash()
180 … "Heap size %" PetscInt_FMT " with %" PetscInt_FMT " stashed\n", h->end - 1, h->alloc - h->stash)); in PetscHeapView()
184 …PetscCall(PetscIntView(2 * (h->alloc - h->stash), (const PetscInt *)(h->base + h->stash), viewer)); in PetscHeapView()
/petsc/systems/Apple/iOS/examples/Basic/
H A Dmain.m13 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
/petsc/systems/Apple/iOS/examples/testopengl/
H A Dmain.m14 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
/petsc/src/sys/objects/device/impls/
H A Dsegmentedmempool.hpp366 …, S>::MemoryBlock(allocator_type *alloc, size_type s, const device::StreamBase<U> *stream) noexcep… in MemoryBlock() argument
369 PetscCallAbort(PETSC_COMM_SELF, alloc->allocate(&mem_, s, stream)); in MemoryBlock()
777 …ryPool(AllocType alloc, std::size_t size) noexcept(std::is_nothrow_default_constructible<pool_type… in SegmentedMemoryPool() argument
/petsc/include/petsc/private/
H A Dpetscdsimpl.h37 size_t alloc; /* Number of bytes allocated for array */ member
H A Dveccupmimpl.h375 if (auto &alloc = VecIMPLCast(v)->array_allocated) PetscFunctionReturn(PETSC_SUCCESS); in HostAllocateCheck_() local
380 const auto useit = UseCUPMHostAlloc((n * sizeof(*alloc)) > v->minimum_bytes_pinned_memory); in HostAllocateCheck_()
383 PetscCall(PetscMalloc1(n, &alloc)); in HostAllocateCheck_()
385 if (!VecIMPLCast(v)->array) VecIMPLCast(v)->array = alloc; in HostAllocateCheck_()
396 if (auto &alloc = VecCUPMCast(v)->array_d) PetscFunctionReturn(PETSC_SUCCESS); in DeviceAllocateCheck_() local
404 alloc = array_allocated_d; in DeviceAllocateCheck_()
/petsc/src/vec/vec/impls/mpi/mpiviennacl/
H A Dmpiviennacl.cxx360 PetscErrorCode VecCreate_MPIViennaCL_Private(Vec vv, PetscBool alloc, PetscInt nghost, const Vienna… in VecCreate_MPIViennaCL_Private() argument
371 if (alloc && !array) { in VecCreate_MPIViennaCL_Private()
/petsc/systems/Apple/iOS/examples/testopengl/Classes/
H A DiphoneViewController.m39 EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
/petsc/src/dm/dt/interface/
H A Ddtweakform.c14 (*buffer)->alloc = expected * unitbytes; in PetscChunkBufferCreate()
26 (*bufferNew)->alloc = buffer->size * buffer->unitbytes; in PetscChunkBufferDuplicate()
41 if ((buffer->size + size) * buffer->unitbytes > buffer->alloc) { in PetscChunkBufferCreateChunk()
44 if (!buffer->alloc) buffer->alloc = (buffer->size + size) * buffer->unitbytes; in PetscChunkBufferCreateChunk()
45 while ((buffer->size + size) * buffer->unitbytes > buffer->alloc) buffer->alloc *= 2; in PetscChunkBufferCreateChunk()
46 PetscCall(PetscMalloc(buffer->alloc, &tmp)); in PetscChunkBufferCreateChunk()
/petsc/src/vec/vec/impls/mpi/
H A Dpbvec.c556 PetscErrorCode VecCreate_MPI_Private(Vec v, PetscBool alloc, PetscInt nghost, const PetscScalar arr… in VecCreate_MPI_Private() argument
589 if (alloc && !array) { in VecCreate_MPI_Private()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas2640 (dpm/memory-alloc-limit 524288000)