Re: [R] Rmpi and C Code, where to get the communicator

2008-03-20 Thread Martin Morgan
Hi Markus -- Usually comm is an argument with default value in the mpi.* functions, so implicitly the user is managing these, e.g., by default, using comm 1. Presumably you'll have an R wrapper to .Call that has a default argument comm=1, and will passs this to the C level. Martin Markus Schm

[R] Rmpi and C Code, where to get the communicator

2008-03-20 Thread Markus Schmidberger
Hello, I try to write parts of my code in C to accelerate the for-loops. But basic operations I want to do in R (e.g. start cluster). My R code looks something like this: library(Rmpi) mpi.spawn.Rslaves() mpi.remote.exec() dyn.load("test.so") erg <- .Call("test", ) mpi.close.Rslave

[R] Rmpi and C Code, where to get the communicator

2008-03-20 Thread Markus Schmidberger
Hello, I try to write parts of my code in C to accelerate the for-loops. But basic operations I want to do in R (e.g. start cluster). My R code looks something like this: library(Rmpi) mpi.spawn.Rslaves() mpi.remote.exec() dyn.load("test.so") erg <- .Call("test", ) mpi.close.Rslave