From alireza.s.mahani at gmail.com  Thu Sep 22 20:08:40 2011
From: alireza.s.mahani at gmail.com (Alireza Mahani)
Date: Thu, 22 Sep 2011 11:08:40 -0700 (PDT)
Subject: [Rd] How to call an MPI-enabled program from R?
Message-ID: <1316714920320-3834332.post@n4.nabble.com>

Conceptually, how is it possible to call an MPI-parallelized code in C from
R? My experience with MPI so far indicates that one has to launch an
MPI-enabled binary using a command like

mpiexec -n <number of processes> <name of binary>

In other words, I'm not sure how to create an MPI 'library' and then call it
from a single-threaded application. In this sense, my question is perhaps
not strictly a R question but an MPI question. (Using a system call forces
one to use disk as intermediary between R and the MPI binary to pass data
between the two.)

I am also aware of packages such as Rmpi, but at this stage I want to be
able to understand the low-level capabilities rather than relying on an
abstraction layer.

Thank you,
Alireza


--
View this message in context: http://r.789695.n4.nabble.com/How-to-call-an-MPI-enabled-program-from-R-tp3834332p3834332.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] How to call an MPI-enabled program from R?
Alireza Mahani