OpenMP and MPI hybrid program

后端 未结 2 1517
慢半拍i
慢半拍i 2020-12-29 12:52

I have a machine with 8 processors. I want to alternate using OpenMP and MPI on my code like this:

OpenMP phase:

  • ranks 1-7 wait on a M
2条回答
  •  灰色年华
    2020-12-29 13:35

    Thanks all for the comments and answers. You are all right. It's all about the "PIN" option.

    To solve my problem, I just had to:

    I_MPI_WAIT_MODE=1

    I_MPI_PIN_DOMAIN=omp

    Simple as that. Now all processors are available to all ranks.

    The option

    I_MPI_DEBUG=4

    shows which processors each rank gets.

提交回复
热议问题