Home
last modified time | relevance | path

Searched refs:sendto (Results 1 – 4 of 4) sorted by relevance

/petsc/src/vec/vec/impls/mpi/
H A Dpdvec.c966 PetscMPIInt *sendto; /* [nsend], storing remote ranks */ in VecSetPreallocationCOO_MPI() local
972 PetscCall(PetscMalloc2(maxNsend, &sendto, maxNsend, &nentries)); in VecSetPreallocationCOO_MPI()
992 PetscCall(PetscArraycpy(sendto2, sendto, maxNsend)); in VecSetPreallocationCOO_MPI()
994 PetscCall(PetscFree2(sendto, nentries2)); in VecSetPreallocationCOO_MPI()
995 sendto = sendto2; in VecSetPreallocationCOO_MPI()
999 sendto[nsend] = owner; in VecSetPreallocationCOO_MPI()
1016 iremote[k].rank = sendto[k]; in VecSetPreallocationCOO_MPI()
1038 iremote[p].rank = sendto[k]; in VecSetPreallocationCOO_MPI()
1054 PetscCall(PetscFree2(sendto, nentries)); in VecSetPreallocationCOO_MPI()
/petsc/src/vec/vec/utils/
H A Dvscat.c933 PetscMPIInt nsend, nrecv, nreq, yrank, *sendto, *recvfrom, tag1, tag2; in VecScatterCreate() local
975 PetscCall(PetscMalloc2(nsend + 1, &sstart, nsend, &sendto)); in VecScatterCreate()
980 PetscCall(PetscMPIIntCast(i, &sendto[j])); in VecScatterCreate()
1021 …PetscCallMPI(MPIU_Isend(xindices_sorted + sstart[i], count, MPIU_INT, sendto[i], tag1, ycomm, sreq… in VecScatterCreate()
1022 …PetscCallMPI(MPIU_Isend(yindices_sorted + sstart[i], count, MPIU_INT, sendto[i], tag2, ycomm, sreq… in VecScatterCreate()
1041 PetscCall(PetscFree2(sstart, sendto)); in VecScatterCreate()
/petsc/src/mat/impls/dense/mpi/
H A Dmpidense.c2268 PetscMPIInt rank, size, sendto, recvfrom, recvisfrom; in MatMatTransposeMultNumeric_MPIDense_MPIDense_Cyclic() local
2304 sendto = (rank + size - 1) % size; in MatMatTransposeMultNumeric_MPIDense_MPIDense_Cyclic()
2307 sendto = recvfrom = 0; in MatMatTransposeMultNumeric_MPIDense_MPIDense_Cyclic()
2322 PetscCallMPI(MPIU_Isend(sendbuf, sendsiz, MPIU_SCALAR, sendto, abt->tag, comm, &reqs[0])); in MatMatTransposeMultNumeric_MPIDense_MPIDense_Cyclic()
/petsc/src/mat/impls/aij/mpi/
H A Dmpiaij.c6408 PetscMPIInt *sendto; /* [nsend], storing remote ranks */ in MatSetPreallocationCOO_MPIAIJ() local
6414 PetscCall(PetscMalloc2(maxNsend, &sendto, maxNsend, &nentries)); in MatSetPreallocationCOO_MPIAIJ()
6434 PetscCall(PetscArraycpy(sendto2, sendto, maxNsend)); in MatSetPreallocationCOO_MPIAIJ()
6436 PetscCall(PetscFree2(sendto, nentries)); in MatSetPreallocationCOO_MPIAIJ()
6437 sendto = sendto2; in MatSetPreallocationCOO_MPIAIJ()
6441 sendto[nsend] = owner; in MatSetPreallocationCOO_MPIAIJ()
6458 iremote[k].rank = sendto[k]; in MatSetPreallocationCOO_MPIAIJ()
6480 iremote[p].rank = sendto[k]; in MatSetPreallocationCOO_MPIAIJ()
6500 PetscCall(PetscFree2(sendto, nentries)); in MatSetPreallocationCOO_MPIAIJ()