| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmallocator.hpp | 40 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 D | cupmevent.hpp | 26 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 D | cupmcontext.hpp | 316 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 D | memoryManager.hpp | 34 T *allocate(RAJA::Index_type size) in allocate() function 42 ptr = sycl_res->allocate<T>(size); in allocate()
|
| H A D | ex1.raja.cxx | 127 double *I = memoryManager::allocate<double>(NN); in main() 128 double *Iold = memoryManager::allocate<double>(NN); in main()
|
| /petsc/include/petsc/private/cpp/ |
| H A D | object_pool.hpp | 77 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 D | segmentedmempool.hpp | 369 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 D | cJSON.c | 141 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 D | object_pool.cxx | 472 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 D | PETSc.pyx | 379 # allocate command line arguments 484 # allocate command line arguments
|
| H A D | KSP.pyx | 2018 Number of right hand vectors to allocate. 2020 Number of left hand vectors to allocate.
|
| /petsc/doc/changes/ |
| H A D | 2015.md | 157 allocate a separate colormap for PETSc graphics windows. This
|
| H A D | 315.md | 53 - Add `PetscCalloc()` to allocate zeroed memory
|
| /petsc/doc/manual/ |
| H A D | fe.md | 42 …t to calculate the size of the local discrete approximation, as well as allocate scratch space for…
|
| H A D | advanced.md | 195 will do nothing except allocate the new matrix; the `XXXFactorNumeric`
|
| H A D | vec.md | 280 …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 D | mat.md | 272 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 D | getting_started.md | 446 allocate too large an array in memory. The routine was called in the
|
| H A D | snes.md | 138 …is an optional vector for storing the solution; pass `NULL` to have the `SNES` allocate it for you.
|
| H A D | ksp.md | 1923 provided, the preconditioner will allocate them.
|
| /petsc/doc/developers/ |
| H A D | matrices.md | 135 you can set `nz=0` and `nnz=NULL` for PETSc to dynamically allocate
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | dcontext.cxx | 107 PetscCall(contextPool.allocate(dctx)); in PetscDeviceContextCreate()
|
| H A D | mark_dcontext.cxx | 61 PetscCall(event_pool.allocate(event)); in PetscDeviceContextCreateEvent_Private()
|
| /petsc/src/ksp/ksp/impls/hpddm/ |
| H A D | hpddm.cxx | 471 copy = op->allocate(m2, 1, N2); in KSPHPDDMSetDeflationMat_HPDDM()
|
| /petsc/doc/faq/ |
| H A D | index.md | 1952 in Fortran, the operating system does not allocate all the memory pages for that array
|