search for: mpi_comm_size

Displaying 3 results from an estimated 3 matches for "mpi_comm_size".

2003 Dec 01
2
help with random numbers and Rmpi
...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); init_sprng() rand = sprng(); free.sprng() randarray = (double *)malloc(sizeof(double)*size); /*Gather random numbers from all C slave processes*/ /* Using randarray doesn't make sense sin...
2007 Dec 05
1
Help installing taskPR
...ted only once spawnhelper.c:41: error: for each function it appears in.) spawnhelper.c:46: warning: implicit declaration of function `MPI_Comm_rank' spawnhelper.c:46: error: `MPI_COMM_WORLD' undeclared (first use in this function) spawnhelper.c:47: warning: implicit declaration of function `MPI_Comm_size' spawnhelper.c:49: warning: implicit declaration of function `MPI_Bcast' spawnhelper.c:49: error: `MPI_INT' undeclared (first use in this function) spawnhelper.c:75: error: `MPI_CHAR' undeclared (first use in this function) make: *** [spawnhelper.o] Error 1 ERROR: compilation failed...
2012 Jul 05
1
trouble installing Rmpi on a debian machine
...' undeclared (first use in this function) Rmpi.c:268: warning: implicit declaration of function 'MPI_Bcast' Rmpi.c:268: error: 'datatype' undeclared (first use in this function) Rmpi.c: In function 'mpi_gatherv': Rmpi.c:290: warning: implicit declaration of function 'MPI_Comm_size' Rmpi.c:290: error: 'comm' undeclared (first use in this function) Rmpi.c:291: warning: implicit declaration of function 'MPI_Comm_rank' Rmpi.c:302: warning: implicit declaration of function 'MPI_Gatherv' Rmpi.c:302: error: 'MPI_INT' undeclared (first use in this...