Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 26) sorted by relevance

12

/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmallocator.hpp40 static PetscErrorCode allocate(value_type **, size_type, const StreamBase<U> *) noexcept;
49 inline PetscErrorCode HostAllocator<T, P>::allocate(value_type **ptr, size_type n, const StreamBase… in allocate() function in Petsc::device::cupm::HostAllocator
91 static PetscErrorCode allocate(value_type **, size_type, const StreamBase<U> *) noexcept;
104 inline PetscErrorCode DeviceAllocator<T, P>::allocate(value_type **ptr, size_type n, const StreamBa… in allocate() function in Petsc::device::cupm::DeviceAllocator
H A Dcupmevent.hpp26 PetscErrorCode allocate(cupmEvent_t *) noexcept;
47 inline PetscErrorCode CUPMEventPool<T, flags>::allocate(cupmEvent_t *event) noexcept in allocate() function in Petsc::device::cupm::CUPMEventPool
156 …if (PetscUnlikely(!event_)) PetscCallAbort(PETSC_COMM_SELF, cupm_fast_event_pool<T>().allocate(&ev… in get()
H A Dcupmcontext.hpp316 if (!event) PetscCall(cupm_fast_event_pool<T>().allocate(&event)); in setUp()
493 …PetscCall(default_pool_<HostAllocator<T>>().allocate(n, reinterpret_cast<char **>(dest), &stream, … in memAlloc()
495 …PetscCall(default_pool_<DeviceAllocator<T>>().allocate(n, reinterpret_cast<char **>(dest), &stream… in memAlloc()
/petsc/src/ksp/ksp/tests/raja/
H A DmemoryManager.hpp34 T *allocate(RAJA::Index_type size) in allocate() function
42 ptr = sycl_res->allocate<T>(size); in allocate()
H A Dex1.raja.cxx127 double *I = memoryManager::allocate<double>(NN); in main()
128 double *Iold = memoryManager::allocate<double>(NN); in main()
/petsc/include/petsc/private/cpp/
H A Dobject_pool.hpp77 PetscErrorCode allocate(void **, size_type, align_type, bool * = nullptr) noexcept;
348 PetscErrorCode allocate(value_type **, Args &&...) noexcept;
418 inline PetscErrorCode ObjectPool<T, Constructor>::allocate(value_type **obj, Args &&...args) noexce… in allocate() function in Petsc::ObjectPool
427 …PetscCall(this->allocator().allocate(&mem, sizeof(value_type), static_cast<align_type>(alignof(val… in allocate()
/petsc/src/sys/objects/device/impls/
H A Dsegmentedmempool.hpp369 PetscCallAbort(PETSC_COMM_SELF, alloc->allocate(&mem_, s, stream)); in MemoryBlock()
581 static PetscErrorCode allocate(value_type **, size_type, const device::StreamBase<U> *) noexcept;
594 inline PetscErrorCode SegmentedMemoryPoolAllocatorBase<T>::allocate(value_type **ptr, size_type n, … in allocate() function in Petsc::memory::impl::SegmentedMemoryPoolAllocatorBase
701 …PetscErrorCode allocate(size_t, value_type **, const stream_type *, size_type = std::alignment_of<…
796 … SegmentedMemoryPool<MemType, StreamType, AllocType, DefaultChunkSize>::allocate(size_t req_size, … in allocate() function in Petsc::memory::SegmentedMemoryPool
892 PetscCall(allocate(new_size, ptr, stream)); in reallocate()
/petsc/src/mat/tests/
H A DcJSON.c141 void *(CJSON_CDECL *allocate)(size_t size);
179 copy = (unsigned char *)hooks->allocate(length); in cJSON_strdup()
190 global_hooks.allocate = malloc; in cJSON_InitHooks()
196 global_hooks.allocate = malloc; in cJSON_InitHooks()
197 if (hooks->malloc_fn != NULL) global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()
204 …if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free)) global_hooks.reallocat… in cJSON_InitHooks()
210 cJSON *node = (cJSON *)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
409 newbuffer = (unsigned char *)p->hooks.allocate(newsize); in ensure()
654 … output = (unsigned char *)input_buffer->hooks.allocate(allocation_length + sizeof("")); in parse_string()
960 buffer->buffer = (unsigned char *)hooks->allocate(default_buffer_size); in print()
[all …]
/petsc/src/sys/objects/cxx/memory/
H A Dobject_pool.cxx472 PetscErrorCode PoolAllocator::allocate(void **out_ptr, size_type size, align_type align, bool *allo… in allocate() function in Petsc::memory::PoolAllocator
587 …PetscCallAbort(PETSC_COMM_SELF, pool().allocate(&ptr, size, static_cast<align_type>(alignof(std::m… in operator new()
611 PetscCallAbort(PETSC_COMM_SELF, pool().allocate(&ptr, size, static_cast<align_type>(align))); in operator new()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DPETSc.pyx379 # allocate command line arguments
484 # allocate command line arguments
H A DKSP.pyx2018 Number of right hand vectors to allocate.
2020 Number of left hand vectors to allocate.
/petsc/doc/changes/
H A D2015.md157 allocate a separate colormap for PETSc graphics windows. This
H A D315.md53 - Add `PetscCalloc()` to allocate zeroed memory
/petsc/doc/manual/
H A Dfe.md42 …t to calculate the size of the local discrete approximation, as well as allocate scratch space for…
H A Dadvanced.md195 will do nothing except allocate the new matrix; the `XXXFactorNumeric`
H A Dvec.md280 …that use an array the user provides rather than having PETSc internally allocate the array space. …
1112 allocate the required space and call
1174 An alternative approach is to allocate global vectors with space
1228 place. In addition, the user does not have to allocate the local work
H A Dmat.md272 automatically allocate additional needed space. However, this extra
339 enough space so that PETSc did not have to internally allocate
694 wish to allocate their own storage space). Most users should merely set
H A Dgetting_started.md446 allocate too large an array in memory. The routine was called in the
H A Dsnes.md138 …is an optional vector for storing the solution; pass `NULL` to have the `SNES` allocate it for you.
H A Dksp.md1923 provided, the preconditioner will allocate them.
/petsc/doc/developers/
H A Dmatrices.md135 you can set `nz=0` and `nnz=NULL` for PETSc to dynamically allocate
/petsc/src/sys/objects/device/interface/
H A Ddcontext.cxx107 PetscCall(contextPool.allocate(dctx)); in PetscDeviceContextCreate()
H A Dmark_dcontext.cxx61 PetscCall(event_pool.allocate(event)); in PetscDeviceContextCreateEvent_Private()
/petsc/src/ksp/ksp/impls/hpddm/
H A Dhpddm.cxx471 copy = op->allocate(m2, 1, N2); in KSPHPDDMSetDeflationMat_HPDDM()
/petsc/doc/faq/
H A Dindex.md1952 in Fortran, the operating system does not allocate all the memory pages for that array

12