Why does MPI_Init accept pointers to argc and argv?

后端 未结 5 864
深忆病人
深忆病人 2021-01-01 11:12

this is how we use MPI_Init function

int main(int argc, char **argv)
{
    MPI_Init(&argc, &argv);
…
}

why does MPI_Init use pointe

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-01 12:08

    According to OpenMPI man pages: MPI_Init(3) man page

    Open MPI accepts the C/C++ argc and argv arguments to main, but neither modifies, interprets, nor distributes them.

提交回复
热议问题