Home
last modified time | relevance | path

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

/petsc/src/sys/utils/
H A Dmpishm.c67 PetscErrorCode PetscShmCommGet(MPI_Comm globcomm, PetscShmComm *pshmcomm) in PetscShmCommGet() argument
75 PetscAssertPointer(pshmcomm, 2); in PetscShmCommGet()
101 PetscCallMPI(MPI_Comm_get_attr(globcomm, Petsc_ShmComm_keyval, pshmcomm, &flg)); in PetscShmCommGet()
104 PetscCall(PetscNew(pshmcomm)); in PetscShmCommGet()
105 (*pshmcomm)->globcomm = globcomm; in PetscShmCommGet()
107 …PetscCallMPI(MPI_Comm_split_type(globcomm, MPI_COMM_TYPE_SHARED, 0, MPI_INFO_NULL, &(*pshmcomm)->s… in PetscShmCommGet()
109 PetscCallMPI(MPI_Comm_size((*pshmcomm)->shmcomm, &(*pshmcomm)->shmsize)); in PetscShmCommGet()
111 PetscCallMPI(MPI_Comm_group((*pshmcomm)->shmcomm, &shmgroup)); in PetscShmCommGet()
112 PetscCall(PetscMalloc1((*pshmcomm)->shmsize, &shmranks)); in PetscShmCommGet()
113 PetscCall(PetscMalloc1((*pshmcomm)->shmsize, &(*pshmcomm)->globranks)); in PetscShmCommGet()
[all …]
/petsc/src/sys/utils/openmp/
H A Dmpmpishm.c137 PetscShmComm pshmcomm; in PetscOmpCtrlCreate() local
164 PetscCall(PetscShmCommGet(petsc_comm, &pshmcomm)); in PetscOmpCtrlCreate()
165 PetscCall(PetscShmCommGetMpiShmComm(pshmcomm, &shm_comm)); in PetscOmpCtrlCreate()
/petsc/src/ksp/pc/impls/gamg/
H A Dgamg.c90 PetscShmComm pshmcomm; in PCGAMGCreateLevel_GAMG() local
96 PetscCall(PetscShmCommGet(comm, &pshmcomm)); in PCGAMGCreateLevel_GAMG()
97 PetscCall(PetscShmCommGetMpiShmComm(pshmcomm, &loccomm)); in PCGAMGCreateLevel_GAMG()