User Tools

Site Tools


自作クラスタ計算機:mpiによる並列計算

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
自作クラスタ計算機:mpiによる並列計算 [2020/03/03 16:47]
koudai [ホストファイルによるジョブの投入]
自作クラスタ計算機:mpiによる並列計算 [2020/03/03 16:48]
koudai [ホストファイルによるジョブの投入]
Line 161: Line 161:
  
   * OpenMPIの場合   * OpenMPIの場合
-<file - my_hosts>+<file - hosts.txt>
 keisan11 slots=2 keisan11 slots=2
 keisan12 slots=4 keisan12 slots=4
 </file> </file>
   * MPICH, Intel MPIの場合   * MPICH, Intel MPIの場合
-<file - my_hosts>+<file - hosts.txt>
 keisan11:2 keisan11:2
 keisan12:4 keisan12:4
Line 173: Line 173:
 次のように実行します 次のように実行します
 <code> <code>
-$ mpirun -n 6 -f my_hosts ./hello+$ mpirun -n 6 -f hosts.txt ./hello
 Hello world: rank 0 of 6 running on keisan11 Hello world: rank 0 of 6 running on keisan11
 Hello world: rank 1 of 6 running on keisan11 Hello world: rank 1 of 6 running on keisan11
自作クラスタ計算機/mpiによる並列計算.txt · Last modified: 2023/12/26 23:43 by koudai