Serialize mpi threads

后端 未结 3 1120
失恋的感觉
失恋的感觉 2021-01-07 12:58

Is there anyway to serialize a certain part of your MPI code ? For example when printing the information out to the screen. Something like below:

MPI_SERIALI         


        
3条回答
  •  一整个雨季
    2021-01-07 13:34

    I would not recommend to output anything on other nodes than the master node, as - depending on the platform that you are using - the slave nodes may not be able to handle output. Therefore, although it is nasty, you will have to collect all information to be printed out to the master node.

提交回复
热议问题