Shared memory access control mechanism for processes created by MPI

后端 未结 2 1910
悲哀的现实
悲哀的现实 2021-01-07 12:20

I have a shared memory used by multiple processes, these processes are created using MPI.

Now I need a mechanism to control the access of this shared me

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-07 12:32

    No, MPI doesn't provide any support for shared memory. In fact, MPI would not want to support shared memory. The reason is that a program written with MPI is supposed to scale to a large number of processors, and a large number of processors never have shared memory.

    However, it may happen, and often does, that groups of small number of processors (in that set of large number of processors) do have shared memory. To utilize that shared memory however, OpenMP is used.

    OpenMP is very simple. I strongly suggest you learn it.

提交回复
热议问题