【文件属性】:
文件名称::Hello是如何被执行的?-并行程序简介
文件大小:415KB
文件格式:PPT
更新时间:2024-05-12 13:29:00
并行
:Hello是如何被执行的?
SPMD: Single Program Multiple Data(SIMD)
::::
#include "mpi.h"
#include
main(
int argc,
char *argv[] )
{
MPI_Init( &argc, &argv );
printf( "Hello, world!\n" );
MPI_Finalize();
}
#include "mpi.h"
#include
main(
int argc,
char *argv[] )
{
MPI_Init( &argc, &argv );
printf( "Hello, world!\n" );
MPI_Finalize();
}
#include "mpi.h"
#include
main(
int argc,
char *argv[] )
{
MPI_Init( &argc, &argv );
printf( "Hello, world!\n" );
MPI_Finalize();
}
#include "mpi.h"
#include
main(
int argc,
char *argv[] )
{
MPI_Init( &argc, &argv );
printf( "Hello, world!\n" );
MPI_Finalize();
}
Hello World!
Hello World!
Hello World!
Hello World!
#include "mpi.h"
#include
main(
int argc,
char *argv[] )
{
MPI_Init( &argc, &argv );
printf( "Hello, world!\n" );
MPI_Finalize();
}
rsh\ssh