search for: all_processes

Displaying 1 result from an estimated 1 matches for "all_processes".

2003 Dec 01
2
help with random numbers and Rmpi
...} ************************************************************************* rand.c ************************************************************************* #include <mpi.h> #include <sprng.h> int main(int argc, char **argv) { double rand; double* randarray; MPI_Comm slavecomm, all_processes; /*Initialize MPI*/ MPI_Init(&argc, &argv); MPI_Comm_get_parent(&slavecomm); MPI_Intercomm_merge(slavecomm, 1, &all_processes); /*How many processes are there?*/ MPI_Comm_size(all_processes, &size); /*Which one am I?*/ MPI_Comm_rank(all_processes, &rank);...