[mpich-discuss] Help

Mandar Gurav mandarwce at gmail.com
Mon Apr 25 07:40:09 CDT 2011


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


More information about the mpich-discuss mailing list