Lines Matching refs:success
223 …E>::claim(const device::StreamBase<U> *stream, size_type req_size, bool *success, bool serialize) … in claim() argument
226 if ((*success = can_claim(stream, req_size, serialize))) { in claim()
430 …:try_allocate_chunk(size_type req_size, T **ptr, const stream_type *stream, bool *success) noexcept in try_allocate_chunk() argument
433 *success = false; in try_allocate_chunk()
442 PetscCall(chunks_.back().claim(stream, req_size, success)); in try_allocate_chunk()
444 …if (was_empty) PetscAssert(*success, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Failed to claim chunk (of s… in try_allocate_chunk()
451 PetscCall(chunk.claim(stream, req_size, success, serialize)); in try_allocate_chunk()
452 if (*success) { in try_allocate_chunk()
471 if (!*success) PetscCall(try_create_chunk()); in try_allocate_chunk()
480 …PetscAssert(!*success, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Successfully claimed a chunk (of size %zu… in try_allocate_chunk()
488 if (!*success) PetscCall(try_create_chunk()); in try_allocate_chunk()
492 if (!*success) PetscCall(try_steal_other_stream_chunk()); in try_allocate_chunk()
514 …oryBlock<T, A, S>::try_deallocate_chunk(T **ptr, const stream_type *stream, bool *success) noexcept in try_deallocate_chunk() argument
523 *success = true; in try_deallocate_chunk()
525 *success = false; in try_deallocate_chunk()