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/02 15:05]
koudai [準備]
自作クラスタ計算機:mpiによる並列計算 [2020/03/02 16:26]
koudai
Line 47: Line 47:
     MPI_Get_processor_name( name, &len );     MPI_Get_processor_name( name, &len );
     name[len] = '\0';     name[len] = '\0';
-    printf( "I am %d of %d from %s\n", rank, size, name );+    printf( "Hello, world! I am %d of %d from %s\n", rank, size, name );
     MPI_Barrier( MPI_COMM_WORLD );     MPI_Barrier( MPI_COMM_WORLD );
     MPI_Finalize();     MPI_Finalize();
Line 58: Line 58:
 $ mpicc test.c $ mpicc test.c
 </code> </code>
 +
 +
 +====== 参考 ======
 +
 +  * https://www.hpci-office.jp/pages/seminar_texts
  
自作クラスタ計算機/mpiによる並列計算.txt · Last modified: 2023/12/26 23:43 by koudai