Lines Matching refs:comm
5 static PetscErrorCode PetscParallelSortInt_Bitonic_Merge(MPI_Comm comm, PetscMPIInt tag, PetscMPIIn… in PetscParallelSortInt_Bitonic_Merge() argument
32 …drecv(keys, n, MPIU_INT, partner, tag, buffer, n, MPIU_INT, partner, tag, comm, MPI_STATUS_IGNORE)… in PetscParallelSortInt_Bitonic_Merge()
41 …PetscCall(PetscParallelSortInt_Bitonic_Merge(comm, tag, rankStart, mid, rank, n, keys, buffer, for… in PetscParallelSortInt_Bitonic_Merge()
43 …PetscCall(PetscParallelSortInt_Bitonic_Merge(comm, tag, mid, rankEnd, rank, n, keys, buffer, forwa… in PetscParallelSortInt_Bitonic_Merge()
49 static PetscErrorCode PetscParallelSortInt_Bitonic_Recursive(MPI_Comm comm, PetscMPIInt tag, PetscM… in PetscParallelSortInt_Bitonic_Recursive() argument
67 …PetscCall(PetscParallelSortInt_Bitonic_Recursive(comm, tag, rankStart, mid, rank, n, keys, buffer,… in PetscParallelSortInt_Bitonic_Recursive()
69 …PetscCall(PetscParallelSortInt_Bitonic_Recursive(comm, tag, mid, rankEnd, rank, n, keys, buffer, f… in PetscParallelSortInt_Bitonic_Recursive()
72 …PetscCall(PetscParallelSortInt_Bitonic_Merge(comm, tag, rankStart, rankEnd, rank, n, keys, buffer,… in PetscParallelSortInt_Bitonic_Recursive()
76 static PetscErrorCode PetscParallelSortInt_Bitonic(MPI_Comm comm, PetscInt n, PetscInt keys[]) in PetscParallelSortInt_Bitonic() argument
83 PetscCall(PetscCommGetNewTag(comm, &tag)); in PetscParallelSortInt_Bitonic()
84 PetscCallMPI(MPI_Comm_size(comm, &size)); in PetscParallelSortInt_Bitonic()
85 PetscCallMPI(MPI_Comm_rank(comm, &rank)); in PetscParallelSortInt_Bitonic()
88 …PetscCall(PetscParallelSortInt_Bitonic_Recursive(comm, tag, 0, size, rank, mpin, keys, buffer, PET… in PetscParallelSortInt_Bitonic()
101 PetscCallMPI(MPI_Comm_size(mapin->comm, &size)); in PetscParallelSampleSelect()
102 PetscCallMPI(MPI_Comm_rank(mapin->comm, &rank)); in PetscParallelSampleSelect()
124 PetscCall(PetscParallelSortInt_Bitonic(mapin->comm, size - 1, pivots)); in PetscParallelSampleSelect()
128 PetscCall(PetscParallelSortedInt(mapin->comm, size - 1, pivots, &sorted)); in PetscParallelSampleSelect()
129 PetscCheck(sorted, mapin->comm, PETSC_ERR_PLIB, "bitonic sort failed"); in PetscParallelSampleSelect()
154 …I(MPI_Allgather(pivots, max_keys_per, MPIU_INT, finalpivots, max_keys_per, MPIU_INT, mapin->comm)); in PetscParallelSampleSelect()
180 PetscCallMPI(MPI_Comm_size(map->comm, &size)); in PetscParallelRedistribute()
181 PetscCallMPI(MPI_Comm_rank(map->comm, &rank)); in PetscParallelRedistribute()
182 PetscCall(PetscCommGetNewTag(map->comm, &firsttag)); in PetscParallelRedistribute()
183 PetscCall(PetscCommGetNewTag(map->comm, &secondtag)); in PetscParallelRedistribute()
185 PetscCallMPI(MPI_Scan(&n, &nextOffset, 1, MPIU_INT, MPI_SUM, map->comm)); in PetscParallelRedistribute()
188 …cCallMPI(MPIU_Irecv(arrayout, total, MPIU_INT, MPI_ANY_SOURCE, firsttag, map->comm, &firstreqrcv)); in PetscParallelRedistribute()
202 …(&arrayin[map->range[i] - myOffset], overlap, MPIU_INT, i, firsttag, map->comm, &firstreqs[nfirst+… in PetscParallelRedistribute()
205 …_Isend(&arrayin[oStart - myOffset], overlap, MPIU_INT, i, secondtag, map->comm, &secondreqs[nsecon… in PetscParallelRedistribute()
208 …PetscCallMPI(MPIU_Isend(&arrayin[oStart - myOffset], 0, MPIU_INT, i, secondtag, map->comm, &second… in PetscParallelRedistribute()
223 …MPI(MPIU_Recv(&arrayout[filled], total - filled, MPIU_INT, sender, secondtag, map->comm, &status)); in PetscParallelRedistribute()
242 PetscCallMPI(MPI_Comm_size(mapin->comm, &size)); in PetscParallelSortInt_Samplesort()
243 PetscCallMPI(MPI_Comm_rank(mapin->comm, &rank)); in PetscParallelSortInt_Samplesort()
262 PetscCallMPI(MPI_Alltoall(keys_per_snd, 1, MPI_INT, keys_per_rcv, 1, MPI_INT, mapin->comm)); in PetscParallelSortInt_Samplesort()
268 …n, keys_per_snd, offsets_snd, MPIU_INT, buffer, keys_per_rcv, offsets_rcv, MPIU_INT, mapin->comm)); in PetscParallelSortInt_Samplesort()
278 PetscCall(PetscParallelSortedInt(mapin->comm, nrecv, buffer, &sorted)); in PetscParallelSortInt_Samplesort()
279 PetscCheck(sorted, mapin->comm, PETSC_ERR_PLIB, "samplesort (pre-redistribute) sort failed"); in PetscParallelSortInt_Samplesort()
329 PetscCallMPI(MPI_Comm_compare(mapin->comm, mapout->comm, &result)); in PetscParallelSortInt()
330 …PetscCheck(result == MPI_IDENT || result == MPI_CONGRUENT, mapin->comm, PETSC_ERR_ARG_NOTSAMECOMM,… in PetscParallelSortInt()
335 …PetscCheck(mapin->N == mapout->N, mapin->comm, PETSC_ERR_ARG_SIZ, "Input and output layouts have d… in PetscParallelSortInt()
336 PetscCallMPI(MPI_Comm_size(mapin->comm, &size)); in PetscParallelSortInt()
352 PetscCall(PetscParallelSortedInt(mapout->comm, mapout->n, keysout, &sorted)); in PetscParallelSortInt()
353 PetscCheck(sorted, mapout->comm, PETSC_ERR_PLIB, "samplesort sort failed"); in PetscParallelSortInt()