Re: MPICH-GM 1.2.5..9.

Patrick Geoffray <[email protected]> 21 Feb 2003 10:59:09 -0500
Newsgroups gmane.network.myrinet.general
Message-ID <1045843150.509.138.camel@asterix>
Hello Enrique,

Try to compile the following code with icc and with gcc with some
optimization (-O or -O2). Let me know if the result are different. It
should not, but on some sites, it is. Without optimization, the results
are the same.

----
#include "stdio.h"
#include "netinet/in.h"


int
main (void)
{
  unsigned short foo, fii;

  foo = 8000;
  fii = htons(foo);

  fprintf(stderr, "htons(8000) = %hd\n", fii);
  return 0;
}
----


The interesting thing is that is works fine with both on my machines,
with or without optimization.
Please, let me know the results

Patrick

On Fri, 2003-02-21 at 10:45, Enrique Lomba wrote:

> example pi3.f, it simple hangs at MPI_INIT. Interestingly if I 
> substitute icc by gcc, then the code runs. I thought the compatibility 
-- 

Patrick Geoffray, Phd
Myricom, Inc.
http://www.myri.com