2 * Test from oertel@ZIB-Berlin.DE
6 * Test of MPI_Ssend on MPI implementation on Cray T3D
8 * Process dest should receive numbers 1,...,10 but
9 * receives 274878030344 instead !!!
11 * Test program works correctly with MPI_Ssend replaced by MPI_Send!
14 * Compiler options: /mpp/bin/cc -Tcray-t3d -g -X2 -I"directory of mpi.h"
16 * Output of run with option -mpiversion:
19 MPI model implementation 1.00.11., T3D Device Driver, Version 0.0
20 MPI model implementation 1.00.11., T3D Device Driver, Version 0.0
21 Configured with -arch=cray_t3d -device=t3d -opt=-g -ar_nolocal -make=gmake
22 Configured with -arch=cray_t3d -device=t3d -opt=-g -ar_nolocal -make=gmake
40 #if defined(NEEDS_STDLIB_PROTOTYPES)
49 int main( int argc, char **argv )
51 int rank; /* My Rank (0 or 1) */
55 MPI_Init(&argc, &argv);
56 MPI_Comm_rank( MPI_COMM_WORLD, &rank);
60 for (i=1; i<=SIZE; i++)
62 MPI_Ssend( &i, 1, MPI_INT, dest, 2000, MPI_COMM_WORLD);
65 } else if (rank == dest) {
67 for (i=1; i<=SIZE; i++)
69 MPI_Recv( &ivalue, 1, MPI_INT, src, 2000, MPI_COMM_WORLD, &Stat);
70 printf("Received %d\n", ivalue); fflush(stdout);
74 MPI_Barrier( MPI_COMM_WORLD);