| /petsc/src/sys/utils/ |
| H A D | segbuffer.c | 5 PetscCount alloc; /* number of units allocated */ member 24 PetscCount alloc; in PetscSegBufferAlloc_Private() local 30 …alloc = 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 D | pheap.c | 11 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 D | main.m | 13 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
| /petsc/systems/Apple/iOS/examples/testopengl/ |
| H A D | main.m | 14 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
| /petsc/src/sys/objects/device/impls/ |
| H A D | segmentedmempool.hpp | 366 …, 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 D | petscdsimpl.h | 37 size_t alloc; /* Number of bytes allocated for array */ member
|
| H A D | veccupmimpl.h | 375 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 D | mpiviennacl.cxx | 360 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 D | iphoneViewController.m | 39 EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtweakform.c | 14 (*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 D | pbvec.c | 556 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 D | testcase3D.cas | 2640 (dpm/memory-alloc-limit 524288000)
|