[问题] mpi 在单一node开启外部程式

楼主: rx800102 (Oh)   2014-10-25 21:24:23
int main(int argc,char *argv[])
{
int done = 0, n, myid, numprocs, i;
double PI25DT = 3.141592653589793238462643; double mypi, pi, h, sum, x;
double startwtime = 0.0, endwtime; int namelen; char
processor_name[MPI_MAX_PROCESSOR_NAME]; MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
MPI_Comm_rank(MPI_COMM_WORLD,&myid);
MPI_Get_processor_name(processor_name,&namelen);
if (myid == 0)
{
system("f:\\123.exe"); <

Links booklink

Contact Us: admin [ a t ] ucptt.com