MPI - Printing in an order

后端 未结 5 1294
臣服心动
臣服心动 2020-12-03 20:12

I\'m trying to write a function in C where every processor prints it\'s own data. Here is what i have:

void print_mesh(int p,int myid,int** U0,int X,int Y){
         


        
5条回答
  •  一个人的身影
    2020-12-03 20:47

    For debugging and development purposes, you can run each process in a separate terminal, so they print in their own terminal:

    mpirun -np n xterm -hold -e ./output
    

    n: number of processors
    -hold: keeps xterm on after the program is done.
    output: name of MPI executable

提交回复
热议问题