とらりもん - MPI Diff
- Added parts are displayed like this.
- Deleted parts are displayed
like this.
MPIとはMessage Passing Interfaceの略. OpenMPより複雑だが効率の良い並列化ができる?
!Ubuntu LinuxでMPIを使う:
https://qiita.com/pochiMasahiro/items/3c0c2828234b3c6a5a44
$ sudo apt-get install openmpi-doc openmpi-bin libopenmpi-dev
コンパイルはgccではなくmpiccを使う。実行は
$ mpirun -np 4 ./a.out
みたいに。-npでプロセス数を指定。
!Ubuntu LinuxでMPIを使う:
https://qiita.com/pochiMasahiro/items/3c0c2828234b3c6a5a44
$ sudo apt-get install openmpi-doc openmpi-bin libopenmpi-dev
コンパイルはgccではなくmpiccを使う。実行は
$ mpirun -np 4 ./a.out
みたいに。-npでプロセス数を指定。