[mpich-discuss] I: Re: Problem to run MPICH2 on Windows 7 with user interface

Rosa Brancaccio rossella_brancaccio at yahoo.it
Mon Apr 18 11:08:53 CDT 2011


Dear Jayesh Krishna,
thank you for your suggestion. 
MPI-IO library will be very interisting for my application.
Unfortuntely my problem is not with I/O on files, but with
standard output and with user interface.
In particular, no object, from the GUI library of my compiler,
is been displayed when I call mpiexec -n X myapp.exe
Instead all work fine if I execute myapp.exe without mpiexec
even if calling mpi functions within myapp. 
Maybe, the only graphyc object I can use, are from MPE library...
This means that I must rewrite my program ...
Any suggestions would be very welcomed!!
Thanks to all
Rosa 


--- Lun 11/4/11, Jayesh Krishna <jayesh at mcs.anl.gov> ha scritto:

> Da: Jayesh Krishna <jayesh at mcs.anl.gov>
> Oggetto: Re: [mpich-discuss] Problem to run MPICH2 on Windows 7 with user interface
> A: mpich-discuss at mcs.anl.gov
> Cc: rossella_brancaccio at yahoo.it
> Data: Lunedì 11 Aprile 2011, 21:05
>  You might want to try out MPI-IO
> (MPI_File_open() ...).
> 
> -Jayesh
> 
> ----- Original Message -----
> From: "Rosa Brancaccio" <rossella_brancaccio at yahoo.it>
> To: mpich-discuss at mcs.anl.gov
> Sent: Wednesday, April 6, 2011 8:22:59 AM
> Subject: [mpich-discuss] Problem to run MPICH2 on Windows 7
> with user    interface
> 
> Hallo all,
> I just downloaded and installed MPICH2 on my pc with 4
> cores and Windows7.
> No problem for installation. I use Labwindows/CVI as
> compiler.
> I write the "hello word" test program. The MPICH2 library
> is linked
> and there is no problem to run the program (without call
> mpiexec)
> from my compiler, obviously it starts with only 1 process
> and it 
> prints "Hello word from node 0" on stdout.
> If I try to start the program from command line (MS-DOS
> shell) with
> the following command
> mpiexec -n 4 Test.exe
> 4 processes of test.exe start (I can see them in the
> Windows Task 
> Manager) but the output does not appear, the command prompt
> is 
> indefinitely locked until I press CTRL-C to stop
> processes.
> Then I tried to write the "Hallo word from node %d" to 4
> files 
> instead of stdout and in this case I have the 4 correct
> sentences 
> in the 4 files but again no command prompt appears until
> the 
> program stops.
> Why cannot I interact with my  program? 
> I cannot give it any input and it cannot display any
> results on stdout.
> Have you any suggest for me?
> I tried also to write a bit more complicated program to
> launch a GUI 
> but the problem is the same.
> I write here the code.
> Thank you to all.
> Rossella
> 
> #include <ansi_c.h>
> #include <userint.h>
> #include <cvirte.h>
> #include "mpi.h"
> #include <stdio.h>
> #include <math.h>
> 
> int main (int argc, char *argv[])
> {
> 
>     FILE*    f=NULL;
>     char   
> path[9999]={'\0'},name[99]={'\0'};
>     int node;
>    
>     sprintf(path,"c:\\test\\file");
> 
>     MPI_Init(&argc,&argv);
>     MPI_Comm_rank(MPI_COMM_WORLD,
> &node);
> 
>     /* the next 5 rows to replace the 
>     printf("Hello World from Node
> %d\n",node);*/
> 
>     sprintf(name,"_node%d.txt",node);
>     strcat(path,name);
>     f=fopen(path,"a");
>     fprintf(f,"Hello World from Node
> %d\n",node);
>     fclose(f);
>             
>     MPI_Finalize();
>     
>     return 0;
> }
> 
> _______________________________________________
> 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