Searched refs:shmsize (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/sys/utils/ |
| H A D | mpishm.c | 6 PetscMPIInt shmsize; /* size of the shared memory communicator */ member 109 PetscCallMPI(MPI_Comm_size((*pshmcomm)->shmcomm, &(*pshmcomm)->shmsize)); in PetscShmCommGet() 112 PetscCall(PetscMalloc1((*pshmcomm)->shmsize, &shmranks)); in PetscShmCommGet() 113 PetscCall(PetscMalloc1((*pshmcomm)->shmsize, &(*pshmcomm)->globranks)); in PetscShmCommGet() 114 for (i = 0; i < (*pshmcomm)->shmsize; i++) shmranks[i] = i; in PetscShmCommGet() 115 …PetscCallMPI(MPI_Group_translate_ranks(shmgroup, (*pshmcomm)->shmsize, shmranks, globgroup, (*pshm… in PetscShmCommGet() 120 …for (i = 0; i < (*pshmcomm)->shmsize; i++) PetscCall(PetscInfo(NULL, "Shared memory rank %d global… in PetscShmCommGet() 157 if (grank > pshmcomm->globranks[pshmcomm->shmsize - 1]) PetscFunctionReturn(PETSC_SUCCESS); in PetscShmCommGlobalToLocal() 161 high = pshmcomm->shmsize; in PetscShmCommGlobalToLocal() 196 …PetscCheck(lrank >= 0 && lrank < pshmcomm->shmsize, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "No… in PetscShmCommLocalToGlobal()
|