int i;
int rank;
int size;
- int *sendcounts, *recvcounts, *rdispls, *sdispls;
MPI_Init(&argc, &argv);
}
/* Create and load the arguments to alltoallv */
- sendcounts = (int *) xbt_malloc(size * sizeof(int));
- recvcounts = (int *) xbt_malloc(size * sizeof(int));
- rdispls = (int *) xbt_malloc(size * sizeof(int));
- sdispls = (int *) xbt_malloc(size * sizeof(int));
+ int* sendcounts = (int*)xbt_malloc(size * sizeof(int));
+ int* recvcounts = (int*)xbt_malloc(size * sizeof(int));
+ int* rdispls = (int*)xbt_malloc(size * sizeof(int));
+ int* sdispls = (int*)xbt_malloc(size * sizeof(int));
for (i = 0; i < size; i++) {
sendcounts[i] = i;
recvcounts[i] = rank;
print_buffer_int( rbuf, size*size, strdup("rbuf:"),rank);
- MPI_Barrier(MPI_COMM_WORLD);
+ MPI_Barrier(MPI_COMM_WORLD);
if (0 == rank) {
printf("Alltoallv TEST COMPLETE.\n");
}