正在加载图片...
Hello World The sample program uses MPI and has each MPI process print Hello world from process i of n using the rank in MPI COMM WORLD for i and the size of mpi comm world for n you can assume that all processes support output for this example Note the order that the output appears in. Depending on your MPI implementation, characters from different lines may be intermixed. A subsequent exercise(7O master/slaves)will show how to order the output You may want to use these mpi routines in your solution MPI Init. MPI Comm size. MPI Comm rank, MPI FinalizeHello World • The sample program uses MPI and has each MPI process print Hello world from process i of n • using the rank in MPI_COMM_WORLD for i and the size of MPI_COMM_WORLD for n. You can assume that all processes support output for this example. • Note the order that the output appears in. Depending on your MPI implementation, characters from different lines may be intermixed. A subsequent exercise (I/O master/slaves) will show how to order the output. • You may want to use these MPI routines in your solution: MPI_Init, MPI_Comm_size, MPI_Comm_rank, MPI_Finalize
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有