Hi Jayesh<br><br>Thank you very much for your reply.<br><br>I actually removed, rebooted, and re-installed MPICH2 for windows several times before. I also made sure the folder is completely erased. I downloaded now again, and will try and let you know<br>
<br>For the credentials, I did register first, and it seem accepted the registration, no error messages or anything, <br><br>Thanks again, <br><br>Kind Regards, <br><br>Manal<br><br><br><br><div class="gmail_quote">2008/11/19 Jayesh Krishna <span dir="ltr"><<a href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font size="2">Hi,<br>
Please find my comments below,<br>
<br>
>> ...the file "libmpi.a" and "libfmpich2g.a" in "C:\Program Files\MPICH2\lib" are 0kb files ...<br>
The gcc libs should not be 0kb in size. There is something wrong with your installation of MPICH2. I recommend that you uninstall your current version of MPICH2, reboot your machine (so that you don't have any MPI programs running in the bg), install the latest stable version (1.0.8) of MPICH2.<br>
<br>
>> ...Credentials for Manal rejected connecting to mhelallpt-xp Aborting: Unable to connect to mhelallpt-xp ...<br>
You have not registered your username/password correctly with mpiexec. You should run "mpiexec -register" and register your username/password (Run "mpiexec -validate" to make sure that the registered username/password works)<br>
<br>
Regards,<br><font color="#888888">
Jayesh</font><div><div></div><div class="Wj3C7c"><br>
-----Original Message-----<br>
From: Manal Helal [<a href="mailto:manalorama@gmail.com" target="_blank">mailto:manalorama@gmail.com</a>]<br>
Sent: Tuesday, November 18, 2008 5:00 AM<br>
To: Jayesh Krishna<br>
Cc: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a>; 'Dmitri Chubarov'<br>
Subject: Re: [mpich-discuss] need to compile unix code as windows exe<br>
<br>
Hello<br>
<br>
Thank you for your help, but I still need help to get my program running on a windows cluster please. I followed both approaches as mentioned before,<br>
<br>
The first is trying to configure mpich2-1.0.8 to use mpicc on cygwin, gives the following errors on cygwin on Windows XP 2002 with SP 3<br>
*****************************************<br>
$ ./configure<br>
./configure: line 12: $'\r': command not found<br>
./configure: line 23: syntax error near unexpected token `$'in\r''<br>
'/configure: line 23: ` case `(set -o) 2>/dev/null` in<br>
*****************************************<br>
<br>
the second is using the cygwin gcc and linking with lmpich, and that's how it goes:<br>
<br>
some information that might help:<br>
the file "libmpi.a" and "libfmpich2g.a" in "C:\Program Files\MPICH2\lib"<br>
are 0kb files, I have "libmpichd.a" as a 1061 Kb file in the same folder, and "libmpich.a" as 1058 KB, and 'libmpicxx.a" as 199 kb file, "mpi.lib" is a 126 kb file, and "fmpich2.lib" as 130 kb file.<br>
<br>
the gcc version is<br>
*****************************************<br>
$ gcc -v<br>
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs<br>
Configured with:<br>
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libe xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext -- enable-version-specific-runtime-libs --without-x --enable-libgcj<br>
--disable-java-<br>
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptio ns --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)<br>
*****************************************<br>
<br>
compiling a simple program like :<br>
*****************************************<br>
#include <stdio.h><br>
#include <math.h><br>
#include <mpi.h><br>
<br>
int main(int argc, char **argv) {<br>
int myProcid, ClusterSize;<br>
MPI_Init(&argc, &argv);<br>
MPI_Comm_rank(MPI_COMM_WORLD, &myProcid);<br>
MPI_Comm_size(MPI_COMM_WORLD, &ClusterSize);<br>
printf ("Hello World Process %d / %d.\n", myProcid, ClusterSize);<br>
//printf ("the ceill(10.55) = %lld\n" , ceill(10.55));<br>
getc (stdin);<br>
MPI_Finalize();<br>
return 0;<br>
}<br>
*****************************************<br>
It is compiled as:<br>
*****************************************<br>
$ gcc hello.c -I "/cygdrive/f/Program Files/MPICH2/include" -L "/cygdrive/f/Program Files/MPICH2/lib" -lmpich -lm -o hello.exe<br>
<br>
creates the exe file with no errors, however, when I try to execute it using the mpich2 for windows "wmpiexec" Interface with 4 processes all on the current node and showing different windows, the windows don't come up, command shown is:<br>
*****************************************<br>
"C:\Program Files\MPICH2\bin\mpiexec.exe" -n 4 -noprompt "C:\cygwin\home\user\hello.exe"<br>
*****************************************<br>
<br>
copying the same command to cygwin, I get the errors shown:<br>
*****************************************<br>
$ "/cygdrive/f/Program Files/MPICH2/bin/mpiexec.exe" -n 4 -noprompt hello.exe Credentials for Manal rejected connecting to mhelallpt-xp<br>
Aborting: Unable to connect to mhelallpt-xp<br>
*****************************************<br>
<br>
<br>
However, compiling my mpi program using the following command in a make<br>
file:<br>
*****************************************<br>
$gcc "/cygdrive/f/Program Files/MPICH2/include" -L "/cygdrive/f/Program Files/MPICH2/lib" -lmpich -lm main.c<br>
<br>
where the main.o is:<br>
main.o : main.c main.h utils.h globals.h<br>
gcc -g -I "/cygdrive/f/Program Files/MPICH2/include" -L "/cygdrive/f/Program Files/MPICH2/lib" main.c -lmpich -o main.o<br>
*****************************************<br>
<br>
<br>
I get the following errors:<br>
*****************************************<br>
/home/user/proj/main.c:112: undefined reference to `_MPI_Barrier'<br>
/home/user/proj/main.c:174: undefined reference to `_MPI_Wtime'<br>
/home/user/proj/main.c:242: undefined reference to `_MPI_Send'<br>
/home/user/proj/main.c:251: undefined reference to `_MPI_Recv'<br>
/home/user/proj/main.c:314: undefined reference to `_MPI_Init'<br>
/home/user/proj/main.c:316: undefined reference to `_MPI_Comm_rank'<br>
/home/user/proj/main.c:318: undefined reference to `_MPI_Comm_size'<br>
/home/user/proj/main.c:320: undefined reference to `_MPI_Comm_group'<br>
/home/user/proj/main.c:321: undefined reference to `_MPI_Comm_create'<br>
/home/user/proj/main.c:366: undefined reference to `_MPI_Finalize'<br>
/home/user/proj/main.c:3254: undefined reference to `_MPI_Waitall'<br>
/home/user/proj/main.c:3379: undefined reference to `_MPI_Isend'<br>
/home/user/proj/main.c:3514: undefined reference to `_MPI_Iprobe'<br>
/home/user/proj/main.c:3520: undefined reference to `_MPI_Recv'<br>
*****************************************<br>
<br>
It is basically all MPI calls I make, and what I couldn't understand, why the "MPI_Init" "MPI_Comm_rank", "MPI_Comm_size" and "MPI_Finalize"<br>
was found on the test program, and not found in the main program.<br>
<br>
when I compile using the above command without the make file, I get more errors like:<br>
<br>
*****************************************<br>
main.c:165: error: `MPI_Status' undeclared (first use in this function)<br>
main.c:242: error: `MPI_INT' undeclared (first use in this function)<br>
main.c:302: error: `MPI_Group' undeclared (first use in this function)<br>
main.c:316: error: `MPI_COMM_WORLD' undeclared (first use in this function)<br>
main.c:3432: error: `MPI_LONG' undeclared (first use in this function)<br>
main.c:3435: error: `MPI_LONG_LONG' undeclared (first use in this function)<br>
main.c:3485: error: `MPI_Status' undeclared (first use in this function)<br>
main.c:3514: error: `MPI_ANY_SOURCE' undeclared (first use in this function)<br>
main.c:3514: error: `MPI_ANY_TAG' undeclared (first use in this function)<br>
main.c:3520: error: `MPI_LONG' undeclared (first use in this function)<br>
main.c:3533: error: `MPI_LONG_LONG' undeclared (first use in this function)<br>
main.c:3205: error: `MPI_SUCCESS' undeclared (first use in this function)<br>
main.c:3209: error: `MPI_ERR_COMM' undeclared (first use in this function)<br>
main.c:3213: error: `MPI_ERR_TYPE' undeclared (first use in this function)<br>
main.c:3217: error: `MPI_ERR_COUNT' undeclared (first use in this function)<br>
main.c:3221: error: `MPI_ERR_TAG' undeclared (first use in this function)<br>
main.c:3225: error: `MPI_ERR_RANK' undeclared (first use in this function)<br>
*****************************************<br>
<br>
I also get simillar errors to all long long functions which are not found on cygwin when I searched or used the "man" command like the<br>
following:<br>
<br>
*****************************************<br>
/home/user/proj/main.c:907: undefined reference to `_sqrtl'<br>
/home/user/proj/main.c:1743: undefined reference to `_powl'<br>
/home/user/proj/main.c:2006: undefined reference to `_ceill'<br>
/home/user/proj/main.c:2035: undefined reference to `_floorl'<br>
*****************************************<br>
I appreciate your help a lot,<br>
<br>
Kind Regards,<br>
<br>
Manal<br>
</div></div></font>
</p>
</div>
</blockquote></div><br>