--- tags: 筆記 --- # MPI [MPI概念,操做](http://boson4.phys.tku.edu.tw/numerical_methods/parallel_course_n_talk/parallel_MPI_commands_n_examples.htm) ## Compile & Run [detail](https://pages.tacc.utexas.edu/~eijkhout/pcse/html/mpi-data.html) - mpicc file.c - 使用 mpi 的 compiler `mpicc` - mpirun [-n 3] a.out - `-n 3`: 指定3個 cpu node ## Data type ![](https://i.imgur.com/PxG4wtC.png) ## Send/Recv [Send](https://www.mpich.org/static/docs/latest/www3/MPI_Send.html) [Recv](https://www.mpich.org/static/docs/latest/www3/MPI_Recv.html)