[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] MPI Jobs on Windows



Hi,

I am trying to run MPI (1.2.4) jobs on windows using Condor (6.6.10). I downloaded and installed mpich 1.2.4 for windows.

How to compile the example MPI C program given in the condor site, there is a sample make file for Linux, but I couldn’t find one for windows.

Could you please help me how to build this program in order to submit to condor.

Thanks,

Senthil

 

 

/**************

 * simplempi.c

 **************/

#include <stdio.h>

#include "mpi.h"

 

int main(argc,argv)

    int argc;

    char *argv[];

{

    int myid;

    char line[128];

 

    MPI_Init(&argc,&argv);

    MPI_Comm_rank(MPI_COMM_WORLD,&myid);

 

    fprintf ( stdout, "Printing to stdout...%d\n", myid );

    fprintf ( stderr, "Printing to stderr...%d\n", myid );

    fgets ( line, 128, stdin );

    fprintf ( stdout, "From stdin: %s", line );

 

    MPI_Finalize();

    return 0;

}