search for: mpi_comm_rank

Displaying 4 results from an estimated 4 matches for "mpi_comm_rank".

2008 Mar 20
1
Rmpi and C Code, where to get the communicator
...t;test.so") erg <- .Call("test", ....) .... mpi.close.Rslaves() mpi.quit() And my C function looks something like this: #include <mpi.h> #include <R.h> #include <Rdefines.h> #include <Rinternals.h> SEXP test (SEXP a, ..){ int rank; comm ?????? MPI_Comm_rank (comm, &rank); ...... } For all MPI functions I need the right communicator (MPI_Comm *comm;) to communicate with the existing slaves. This variable will be generated by spawning the Rslaves (mpi.spawn.Rslaves). But how to get to this variable in my C function? Is the communicator varia...
2003 Dec 01
2
help with random numbers and Rmpi
...ay; 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 since this should correspond to the rdata vector in the R master pr...
2007 Dec 05
1
Help installing taskPR
...nction `MPI_Init' spawnhelper.c:41: error: `MPI_SUCCESS' undeclared (first use in this function) spawnhelper.c:41: error: (Each undeclared identifier is reported 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 (f...
2012 Jul 05
1
trouble installing Rmpi on a debian machine
...' 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 function) Rmpi.c:308: error: 'MPI_DOUBLE' undeclared (first use in this function) Rmpi.c:318: error: 'MPI_CHAR' undeclared (first use i...