Mpi 学习
编译*.c文件
mpic -g -Wall -o helloworld.o helloworld.c
-g 允许使用调试器
-Wall 显示warning
运行*.o文件
mpirun -n 4 ./helloworld.o
结果显示生成四个进程,并随机运行
Hello World from process 0
Hello World from process 3
Hello World from process 2
Hello World from process 1