MPI memo

hostfile

例えば, ファイル hostfile に以下を書く.

localhost slots=4

その上で, 実行時に下のように指定する.

mpiexec -n 4 -hostfile hostfile ./a.out

参考ページ