bjpop/haskell-mpi — Issue #9: Issues with anySource
Author: adk9
Created: 2012-02-24 17:15:58+00:00
State: open

I am running into an issue using anySource and anyTag where my program crashes at runtime with:

> ServerH: Enum.toEnum{Int32}: tag (-4294967297) is outside of bounds (-2147483648,2147483647)

I suspect that it has got something to do with me using anySource and anyTag when posting a receive.

> $ cat ~/opt/include/mpi.h | grep "ANY_SOURCE\|ANY_TAG"
> #define MPI_ANY_SOURCE -1 /* match any source rank */
> #define MPI_ANY_TAG -1 /* match any message tag */

I wrote a simple test to print the values of anySource and anyTag

> $ ./anySourceTest
> anySource = -4294967297 anyTag = 4294967295

Why are they different?