Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 3 of 3) sorted by relevance

/petsc/src/sys/objects/device/impls/
H A Dimpldevicebase.hpp137 constexpr auto buflen = buf.size() - 1; in PetscOptionDevice() local
143 …n < buflen, PetscOptionsObject->comm, PETSC_ERR_PLIB, "char buffer is not large enough to hold '%s… in PetscOptionDevice()
145 PetscCall(PetscSNPrintf(buf.data(), buflen, "%s%s", optstub, implname)); in PetscOptionDevice()
221 constexpr auto buflen = buf.size() - 1; // -1 to leave room for null in PetscOptionDeviceAll() local
228 …eck(len < buflen, comm, PETSC_ERR_PLIB, "char buffer is not large enough to hold 'PetscDevice %s O… in PetscOptionDeviceAll()
230 PetscCall(PetscSNPrintf(buf.data(), buflen, optname, implname)); in PetscOptionDeviceAll()
/petsc/src/vec/is/sf/impls/basic/nvshmem/
H A Dsfnvshmem.cu218 …PetscInt buflen = (direction == PETSCSF_ROOT2LEAF) ? bas->rootbuflen[PETSCSF_REMOTE] : sf->l… in PetscSFLinkBuildDependenceBegin() local
221 if (buflen) { in PetscSFLinkBuildDependenceBegin()
233 …PetscInt buflen = (direction == PETSCSF_ROOT2LEAF) ? sf->leafbuflen[PETSCSF_REMOTE] : bas->r… in PetscSFLinkBuildDependenceEnd() local
237 if (buflen) { in PetscSFLinkBuildDependenceEnd()
/petsc/src/vec/is/sf/impls/basic/
H A Dsfpack.c1089 PetscInt buflen = sf->leafbuflen[PETSCSF_LOCAL]; in PetscSFLinkScatterLocal() local
1095 if (!buflen) PetscFunctionReturn(PETSC_SUCCESS); in PetscSFLinkScatterLocal()
1110 PetscCall((*link->Memcpy)(link, dstmtype, dstbuf, srcmtype, srcbuf, buflen * link->unitbytes)); in PetscSFLinkScatterLocal()