Hi,
There is an error in the program.
First you declare a 256 char buffer (BUF_SIZE = 256).
When it is executed the line 96:
buffer = (MPI.getProcessorName()).toCharArray();
The buffer length becomes less than 256.
So, when the next iteration is executed, at line 92 you could get an
except
Looks to me like a buffer isn’t getting initialized to NULL - the message is
correct (as is the length), but the rest of the array is random garbage.
However, note that MPI messages don’t initialize their buffers for performance
reasons. So your program should only be checking the first 6 bytes
Hi,
today a tested some small Java programs with openmpi-dev-178-ga16c1e4.
One program throws an exception ArrayIndexOutOfBoundsException. The
program worked fine in older MPI versions, e.g., openmpi-1.8.2a1r31804.
tyr java 138 mpiexec -np 2 java MsgSendRecvMain
Now 1 process sends its greeting