[mpich-discuss] Help

marcia nasare marcianasare at gmail.com
Mon Apr 25 06:26:49 CDT 2011


Hi, I'm newbie in MPI applications and I have a lot of questions. But my
first problem is with the execution.
I try execute the code using mpiexec, but never find the library mpi.h. I
start with a simple code:

#include <stdio.h>
#include <mpi.h>

int main(int argc, char **argv){

    int t;
    t = MPI_Init(&argc,&argv);
    if(t == MPI_SUCCESS){
        printf("test ok");
    }
    MPI_Finalize();
    return 0;
}




So, I compiled with mpicc test.c -o test. The result was the executable, but
it isn't work. The mensage no such file or directory.
I need some help.

thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110425/8e086573/attachment.htm>


More information about the mpich-discuss mailing list