Displaying 2 results from an estimated 2 matches for "mpi_intercomm_merge".
2003 Dec 01
2
help with random numbers and Rmpi
...********************************************
#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);
init_sprng()
rand = sprng();
free.sprng()
randarray = (double *)malloc(sizeof(double)*size);
/*Gather ran...
2012 Jul 05
1
trouble installing Rmpi on a debian machine
...39;MPI_ERRORS_RETURN' undeclared (first use in this function)
Rmpi.c: In function 'mpi_comm_test_inter':
Rmpi.c:992: warning: implicit declaration of function 'MPI_Comm_test_inter'
Rmpi.c:992: error: 'comm' undeclared (first use in this function)
Rmpi.c: In function 'mpi_intercomm_merge':
Rmpi.c:1051: warning: implicit declaration of function 'MPI_Intercomm_merge'
Rmpi.c:1051: error: 'comm' undeclared (first use in this function)
Rmpi.c: In function 'mpi_comm_remote_size':
Rmpi.c:1058: warning: implicit declaration of function 'MPI_Comm_remote_size&...