<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hello, <div><br></div><div>I am a newbie in MPI. I have installed MPICH-3.0.4 on my virtual machine, Ubuntu 14.04. It runs the cpi example and also compiles and runs the sample Hello World example. </div><div>I need to create log files, using MPE. In the manuals, it is said that the MPE is included in MPICH, however, it is not. Therefore, I have installed the MPE2-1.3.0 with the following configuration options:</div><div>
        
        
        


<p class=""><b>sudo ./configure –prefix=/path/to/install/
</b><font color="#000000"><i><b>--with-mpicc=/mirror/mpich2/bin/mpicc
</b></i></font><font color="#000000"><b>
</b></font><font color="#000000"><i><b>--with-mpilibs=</b></i></font><font color="#000000"><i><b><span style="background:rgb(255,255,0)">-L/</span></b></i></font><font color="#000000"><i><b>mirror/mpich2/lib/
--with-mpiinc=</b></i></font><font color="#000000"><i><b><span style="background:rgb(255,255,0)">-I/</span></b></i></font><font color="#000000"><i><b>mirror/mpich2/include/
--disable-f77 –enable-mpe_graphics –enable-mpedbg –enable-mpich
–with-mpiio –enable-checkMPIwtime</b></i></font></p><p class="">I had actually disabled the mpedbg, since while making, it went to a loop that could not find it. <font color="#000000"><i><b><br></b></i></font></p><p class="">While using make command, it gave me some errors and warnings like the following. I have set the LD_LIBRARY_PATH and LIBRARY_PATH, but still cannot create a log file. </p><p class="">1- I don't know which version of MPICH and MPE to use, and from where to download (I have found and MPICH2 that has an MPE folder inside, however, some libs seem to be missing) </p><p class="">2- I appreciate your help for installing. </p><p class="">Thanks,</p><p class="">Fatemeh</p><p class=""><br></p><p class="">In file included from log_mpi_core.c:6997:0:<br>log_mpi_io.c:1590:5: error: conflicting types for ‘MPI_File_write_at_all_end’<br> int MPI_File_write_at_all_end( MPI_File  fh,void * buf,MPI_Status * status  )<br>     ^<br>In file included from /mirror/mpich2/include/mpi.h:2121:0,<br>                 from log_mpi_core.c:10:<br>/mirror/mpich2/include/mpio.h:203:5: note: previous declaration of ‘MPI_File_write_at_all_end’ was here<br> int MPI_File_write_at_all_end(MPI_File fh, const void *buf, MPI_Status *status);<br>     ^<br>In file included from log_mpi_core.c:6997:0:<br>log_mpi_io.c:<a href="tel:1689" value="+491689" target="_blank">1689</a>:5: error: conflicting types for ‘MPI_File_write_all_begin’<br> int MPI_File_write_all_begin( MPI_File  fh,void * buf,int  count,MPI_Datatype  datatype  )<br>     ^<br>In file included from /mirror/mpich2/include/mpi.h:2121:0,<br>                 from log_mpi_core.c:10:<br>/mirror/mpich2/include/mpio.h:207:5: note: previous declaration of ‘MPI_File_write_all_begin’ was here<br> int MPI_File_write_all_begin(MPI_File fh, const void *buf, int count, MPI_Datatype datatype)<br>     ^<br>In file included from log_mpi_core.c:6997:0:<br>log_mpi_io.c:1722:5: error: conflicting types for ‘MPI_File_write_all_end’<br> int MPI_File_write_all_end( MPI_File  fh,void * buf,MPI_Status * status  )<br>     ^<br>In file included from /mirror/mpich2/include/mpi.h:2121:0,<br>                 from log_mpi_core.c:10:<br>/mirror/mpich2/include/mpio.h:209:5: note: previous declaration of ‘MPI_File_write_all_end’ was here<br> int MPI_File_write_all_end(MPI_File fh, const void *buf, MPI_Status *status);<br>     ^<br>In file included from log_mpi_core.c:6997:0:<br>log_mpi_io.c:1821:5: error: conflicting types for ‘MPI_File_write_ordered_begin’<br> int MPI_File_write_ordered_begin( MPI_File  fh,void * buf,int  count,MPI_Datatype  datatype  )<br>     ^<br>In file included from /mirror/mpich2/include/mpi.h:2121:0,<br>                 from log_mpi_core.c:10:<br>/mirror/mpich2/include/mpio.h:213:5: note: previous declaration of ‘MPI_File_write_ordered_begin’ was here<br> int MPI_File_write_ordered_begin(MPI_File fh, const void *buf, int count, MPI_Datatype datatype)<br>     ^<br>In file included from log_mpi_core.c:6997:0:<br>log_mpi_io.c:1854:5: error: conflicting types for ‘MPI_File_write_ordered_end’<br> int MPI_File_write_ordered_end( MPI_File  fh,void * buf,MPI_Status * status  )<br>     ^<br>In file included from /mirror/mpich2/include/mpi.h:2121:0,<br>                 from log_mpi_core.c:10:<br>/mirror/mpich2/include/mpio.h:215:5: note: previous declaration of ‘MPI_File_write_ordered_end’ was here<br> int MPI_File_write_ordered_end(MPI_File fh, const void *buf, MPI_Status *status);<br>     ^<br>make[4]: *** [log_mpi_core.o] Error 1<br>make[3]: *** [build_lib_bin] Error 2<br>make[2]: *** [all] Error 2<br><br>**** Making src/graphics ....<br>make --no-print-directory  build_lib_bin<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://mpe_graphics.no/" target="_blank">mpe_graphics.no</a> -c mpe_graphics.c<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://xcolor.no/" target="_blank">xcolor.no</a> -c xcolor.c<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://xframe.no/" target="_blank">xframe.no</a> -c xframe.c<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://xinit.no/" target="_blank">xinit.no</a> -c xinit.c<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://xwmap.no/" target="_blank">xwmap.no</a> -c xwmap.c<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://xmouse.no/" target="_blank">xmouse.no</a> -c xmouse.c<br>cc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include    -DMPE_NOMPI -o <a href="http://xkey.no/" target="_blank">xkey.no</a> -c xkey.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o mpe_graphics.po -c mpe_graphics.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o xcolor.po -c xcolor.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o xframe.po -c xframe.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o xinit.po -c xinit.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o xwmap.po -c xwmap.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o xmouse.po -c xmouse.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o xkey.po -c xkey.c<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include  -I/mirror/mpich2/include/   -o visual_mess.po -c visual_mess.c<br>visual_mess.c: In function ‘MPI_Bsend’:<br>visual_mess.c:325:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:847:5: error: prototype declaration<br> int MPI_Bsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Bsend_init’:<br>visual_mess.c:349:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:884:5: error: prototype declaration<br> int MPI_Bsend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Send_init’:<br>visual_mess.c:445:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:882:5: error: prototype declaration<br> int MPI_Send_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Ibsend’:<br>visual_mess.c:481:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:857:5: error: prototype declaration<br> int MPI_Ibsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Irsend’:<br>visual_mess.c:546:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:861:5: error: prototype declaration<br> int MPI_Irsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Isend’:<br>visual_mess.c:582:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:855:5: error: prototype declaration<br> int MPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Issend’:<br>visual_mess.c:618:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:859:5: error: prototype declaration<br> int MPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Rsend’:<br>visual_mess.c:679:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:851:5: error: prototype declaration<br> int MPI_Rsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Rsend_init’:<br>visual_mess.c:703:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:888:5: error: prototype declaration<br> int MPI_Rsend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Send’:<br>visual_mess.c:739:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:842:5: error: prototype declaration<br> int MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Sendrecv’:<br>visual_mess.c:763:8: error: argument ‘sendbuf’ doesn’t match prototype<br> void * sendbuf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:894:5: error: prototype declaration<br> int MPI_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, int dest,<br>     ^<br>visual_mess.c: In function ‘MPI_Ssend’:<br>visual_mess.c:828:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:849:5: error: prototype declaration<br> int MPI_Ssend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>visual_mess.c: In function ‘MPI_Ssend_init’:<br>visual_mess.c:852:8: error: argument ‘buf’ doesn’t match prototype<br> void * buf;<br>        ^<br>In file included from visual_mess.c:27:0:<br>/mirror/mpich2/include/mpi.h:886:5: error: prototype declaration<br> int MPI_Ssend_init(const void *buf, int count, MPI_Datatype datatype, int dest, int tag,<br>     ^<br>make[4]: *** [visual_mess.po] Error 1<br>make[3]: *** [build_lib_bin] Error 2<br>make[2]: *** [all] Error 2<br><br>**** Making src/collchk ....<br>make --no-print-directory  build_lib_bin<br>make --no-print-directory  /mirror/mpe2-1.3.0/lib/libmpe_collchk.a<br>/mirror/mpich2/bin/mpicc -I.. -I../include -I/mirror/mpe2-1.3.0/include -I../../.. -I../../../include -I/mirror/mpich2/include/   -c begin.c<br>In file included from begin.c:5:0:<br>../include/collchk.h:25:5: error: conflicting types for ‘MPI_Add_error_string’<br> int MPI_Add_error_string(int errorcode, char *string);<br>     ^<br>In file included from ../include/collchk.h:20:0,<br>                 from begin.c:5:<br>/mirror/mpich2/include/mpi.h:1157:5: note: previous declaration of ‘MPI_Add_error_string’ was here<br> int MPI_Add_error_string(int errorcode, const char *string);<br>     ^<br>make[5]: *** [begin.o] Error 1<br>make[4]: *** [default] Error 2<br>make[3]: *** [build_lib_bin] Error 2<br>make[2]: *** [all] Error 2<br></p><p class="">......<br></p><p class="">make  /mirror/mpe2-1.3.0/src/slog2sdk/trace_rlog/bin/rlog_print<br>cc -I.. -I/usr/lib/jvm/java-7-openjdk-amd64/include -I/usr/lib/jvm/java-7-openjdk-amd64/include/linux -I../../src/logformat/trace  -g -O2 -c trace_input.c<br>cc -I.. -I/usr/lib/jvm/java-7-openjdk-amd64/include -I/usr/lib/jvm/java-7-openjdk-amd64/include/linux -I../../src/logformat/trace  -g -O2 -c rlogutil.c<br>rlogutil.c: In function ‘RLOG_CreateInputStruct’:<br>rlogutil.c:107:7: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]<br>  fread(&length, sizeof(int), 1, pInput->f);<br>       ^<br>rlogutil.c:159:11: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]<br>      fread(&cur_rank, sizeof(int), 1, pInput->f);<br>           ^<br>rlogutil.c:167:11: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]<br>      fread(&pInput->pNumEventRecursions[rank_index], sizeof(int), 1, pInput->f);<br></p></div></div>