Skip to content
Prev 1220 / 2152 Next

Rmpi for non matrices results

Hi!

I wonder if you know that the vignette for the new R parallel package
has a worked example on bootstrapping.

You use a lot of Rmpi functions here that I don't use, I'm usually
trying to write a function and distribute across notes with
clusterApply or such, but it is always interesting to see how other
people do it.

If this program does run for you, I'd say you should count your
blessing. The only problem is the format of the return? If the sum
total of your question is that the return value is a 30 x 10 matrix
instead of a 300x1 column, may I suggest you read ?stack and ?unstack
to just transform your output?  The plyr package has plenty of high
power tools to do that, but from what I see here you don't need them.

You could also collect your results in a list, rather than into the
columns of a matrix, and then it is easy to put all those numbers into
a vector (?unlist).

Now, I have a question for you.  When I run Rmpi jobs in our cluster
these days, I get a warning about forking. Do you see that too?
--------------------------------------------------------------------------
An MPI process has executed an operation involving a call to the
"fork()" system call to create a child process.  Open MPI is currently
operating in a condition that could result in memory corruption or
other system errors; your MPI job may hang, crash, or produce silent
data corruption.  The use of fork() (or system() or other calls that
create child processes) is strongly discouraged.

The process that invoked fork was:

  Local host:          compute-2-11.local (PID 10326)
  MPI_COMM_WORLD rank: 0

If you are *absolutely sure* that your application will successfully
and correctly survive a call to fork(), you may disable this warning
by setting the mpi_warn_on_fork MCA parameter to 0.
--------------------------------------------------------------------------
~
On Tue, Jan 31, 2012 at 4:27 PM, <khalfala at math.mcmaster.ca> wrote:

  
    
Message-ID: <CAErODj81tDF-aTYwOka=o34DJP5DzkOdcoEswSjJMqbzVVq5fg@mail.gmail.com>
In-Reply-To: <404a8b4dd13451f5705ca9d6e45d522a.squirrel@ms.mcmaster.ca>