Lines Matching refs:bytes

27   MPI_Aint                bytes;  member
430 MPI_Aint bytes; in PetscSFGetWindow() local
438 PetscCall(PetscSFGetDatatypeSize_Internal(PetscObjectComm((PetscObject)sf), unit, &bytes)); in PetscSFGetWindow()
439 wsize = (MPI_Aint)(bytes * sf->nroots); in PetscSFGetWindow()
472 …PetscCheck(bytes == link->bytes, wcomm, PETSC_ERR_ARG_WRONGSTATE, "Wrong data type for persistent … in PetscSFGetWindow()
483 if (!link->inuse && (!epoch || !link->epoch) && bytes == (MPI_Aint)link->bytes) { in PetscSFGetWindow()
498 link->bytes = bytes; in PetscSFGetWindow()
512 PetscCallMPI(MPI_Win_create(rootdata, wsize, (PetscMPIInt)bytes, w->info, wcomm, &link->win)); in PetscSFGetWindow()
521 …PetscCallMPI(MPI_Win_allocate(wsize, (PetscMPIInt)bytes, w->info, wcomm, &link->addr, &link->win)); in PetscSFGetWindow()
527 …PetscCallMPI(MPI_Win_allocate_shared(wsize, (PetscMPIInt)bytes, w->info, wcomm, &link->addr, &link… in PetscSFGetWindow()
546 PetscCall(PetscMemcpy(link->addr, rootdata, sf->nroots * bytes)); in PetscSFGetWindow()
610 MPI_Aint bytes; in PetscSFFindWindow() local
613 PetscCall(PetscSFGetDatatypeSize_Internal(PetscObjectComm((PetscObject)sf), unit, &bytes)); in PetscSFFindWindow()
622 if (rootdata == link->rootdata && leafdata == link->leafdata && bytes == link->bytes) { in PetscSFFindWindow()
657 MPI_Aint bytes; in PetscSFRestoreWindow() local
673 bytes = link->bytes; in PetscSFRestoreWindow()
722 PetscCall(PetscMemcpy(array, laddr, sf->nroots * bytes)); in PetscSFRestoreWindow()
864 MPI_Aint bytes, wsize; in PetscSFRegisterPersistent_Window() local
871 PetscCall(PetscSFGetDatatypeSize_Internal(PetscObjectComm((PetscObject)sf), unit, &bytes)); in PetscSFRegisterPersistent_Window()
872 wsize = (MPI_Aint)(bytes * sf->nroots); in PetscSFRegisterPersistent_Window()
887 link->bytes = bytes; in PetscSFRegisterPersistent_Window()
904 MPI_Aint bytes; in PetscSFDeregisterPersistent_Window() local
912 PetscCall(PetscSFGetDatatypeSize_Internal(PetscObjectComm((PetscObject)sf), unit, &bytes)); in PetscSFDeregisterPersistent_Window()
918 …->persistent && link->rootdata == rootdata && link->leafdata == leafdata && link->bytes == bytes) { in PetscSFDeregisterPersistent_Window()