[mpich-discuss] Help

Jayesh Krishna jayesh at mcs.anl.gov
Mon Apr 25 09:18:30 CDT 2011


 How are you running your code (Try "mpiexec -n 2 ./test" )?


-Jayesh
----- Original Message -----
From: "Mandar Gurav" <mandarwce at gmail.com>
To: mpich-discuss at mcs.anl.gov
Sent: Monday, April 25, 2011 7:40:09 AM
Subject: Re: [mpich-discuss] Help

I think that you are trying to compile the program from some other directory.

Try executing this command before using mpicc command

$your_terminal : ls

this should list out all the files and folders in the current working
directory. This must show your source program.

On Mon, Apr 25, 2011 at 4:56 PM, marcia nasare <marcianasare at gmail.com> wrote:
> 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
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>



-- 
Mandar Gurav
http://www.mandargurav.org
_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list