Displaying 20 results from an estimated 6000 matches similar to: "Creating a package which contains stand-alone C code"
2009 Feb 06
2
Rmpi Segmentation fault
Dear all,
I have used the Rmpi package many times before however this time I've
installed it as I always do with openMPI tar.gz file direct from the
website. I'm installing on my ubuntu 8.10.
Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009 x86_64 GNU/Linux
All i get is:
> library(Rmpi)
Segmentation fault
:~$
Which dumps me back into the shell, and doens't give me much
2010 Jul 12
1
How to use mpi.allreduce() in Rmpi?
Hi everybody!
I have the next code which makes a reduction of the *a *variable in two
slaves, using the Rmpi package.
library(Rmpi)
mpi.spawn.Rslaves(nslaves=2)
reduc<-function(){
a<-mpi.comm.rank()+2
mpi.reduce(a,type=2, op="prod")
return(paste("a=",a))
}
mpi.bcast.Robj2slave(reduc)
mpi.remote.exec(reduc())
cat("Product: ")
2010 Jul 12
1
How to use mpi.allreduce() in Rmpi?
Hi everybody!
I have the next code which makes a reduction of the *a *variable in two
slaves, using the Rmpi package.
library(Rmpi)
mpi.spawn.Rslaves(nslaves=2)
reduc<-function(){
a<-mpi.comm.rank()+2
mpi.reduce(a,type=2, op="prod")
return(paste("a=",a))
}
mpi.bcast.Robj2slave(reduc)
mpi.remote.exec(reduc())
cat("Product: ")
2008 Nov 07
1
Rmpi task-pull
Hi, I'm testing the efficiency of the Rmpi package regarding parallelization
using a cluster.
I've found and tried the task pull programming method, but even if it is
described as the best method, it seems to cause deadlock, anyone could help
me in using this method?
here is the code I've found and tried:
# Initialize MPI
library("Rmpi")
# Notice we just say "give us
2014 Mar 20
1
modifying data in a package
I've tweaked Rmpi and want to have some variables that hold data in the
package. One of the R files starts
mpi.isend.obj <- vector("list", 500) #mpi.request.maxsize())
mpi.isend.inuse <- rep(FALSE, 500) #mpi.request.maxsize())
and then functions update those variables with <<-. When run:
2008 Jul 01
2
problem with mpiexec and Rmpi
Dear R People:
I'm having some trouble with mpiexec and Rmpi.
I would like to be able to pass in the number of "children" via the
mpiexec command (from the command line).
this is in SUSE10.1, with R-2.7.1
Here are my files:
cat eb.R
library(Rmpi)
mpi.remote.exec(paste("i am",mpi.comm.rank(),"of",mpi.comm.size()))
mpi.quit()
hodgesse at
2008 Jul 16
1
Problem with mpi.close.Rslaves()
I am running R 2.7.0 on a Suse 9.1 linux cluster with a job scheduler
dispatching jobs and openmpi-1.0.1. I have tried running one of the
examples at http://ace.acadiau.ca/math/ACMMaC/Rmpi/examples.html in Rmpi
and they seem to be working, except mpi.close.Rslaves() hangs. The
slaves are closed, but the master doesn't finish its script. Below is
the example script and the call to R. The job is
2007 Apr 24
1
Problem installing Rmpi with lam on SGI SLES9
Hi,
I've been trying here to install Rmpi on an SGI IA-64 machine with 64
processors, running SuSE Linux Enterprise Server 9, R 2.4.0 and
lam-mpi 7.1.3. While I've read of similar problems on this list, I
think I've got an entirely new set of error messages to contribute
(see below). I'm not sure what the actual error is and what the @gprel
relocation message is about. Any help
2005 Dec 20
2
Install Rmpi on Fedora with mpich2 installed.
Hi, everyone,
I want to install Rmpi on a cluster with Fedora linux. It already installed mpich2, but not lam-mpi. I installed R-2.2.0 on it already.
And I got error as below:
* Installing *source* package 'Rmpi' ...
Try to find mpi.h ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are
2005 Apr 08
2
error on install Rmpi packages
Dear Sir/Madam,
I need to install Rmpi Package on my linux debian like, but I get some
errors.
I try to instal it using install.packages or after download and save it
on my local dir and run R CMD INSTALL packagename and, both, I get these
errors:
checking mpi.h usability... no
checking mpi.h presence... no
checking for mpi.h... no
Try to find mpi.h ...
Cannot find mpi header file.
Please
2003 Dec 01
2
help with random numbers and Rmpi
Dear People,
This may not be the right place to ask a question about Rmpi, but I don't
know of a better one.
I am trying to get a simple program working using Rmpi with the model of 1
R master and n C slaves. What I am trying to do is have each of the C
slaves generate a random number from U[0,1], and then have the master
collect all n numbers as a vector and output it. However even doing
2008 Mar 20
1
Rmpi and C Code, where to get the communicator
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.Rslaves()
mpi.quit()
And my C function looks something like this:
#include
2007 Oct 04
1
Rmpi_0.5-4 and OpenMPI questions
Many thanks to Dr Yu for updating Rmpi for R 2.6.0, and for starting to make
the changes to support Open MPI.
I have just built the updated Debian package of Rmpi (i.e. r-cran-rmpi) under
R 2.6.0 but I cannot convince myself yet whether it works or not. Simple
tests work. E.g. on my Debian testing box, with Rmpi installed directly
using Open Mpi 1.2.3-2 (from Debian) and using 'r' from
2014 Oct 03
2
mpi.h errors on Mavericks packages
Dear mac folks,
I have started porting a large legacy toolset maintained in windows
and heavily mpi laden so it can be used across platforms in R... so I
am building a package out of it. On this note, I am noticing that
almost all of the mpi dependent packages do not compile on the CRAN
repositories.... with the basic issue that it appears it can not find
mpi installed:
configure: error:
2008 Sep 08
1
RMPI Question
Dear R Users,
I have a relatively simple rmpi question.
My configation is:
- R version 2.7.2
- rmpi 0.5-6
- Deino MPI 1.1.0
- Windows XP SP2
After succesfully spawning slaves, I am trying to assign values to
variables in the environment of each slave and run some simple calcs. This
appears to fail, as below: my assignment of value "1" to variable "a"
appears to come back
2007 Dec 20
2
Multicore computation in Windows network: How to set up Rmpi
R-users,
My question is related to earlier posts about benefits of quadcore over
dualcore computers; I am trying to setup a cluster of windows xp
computers so that eventually I could make use of 10-20 cpu:s, but for
learning how to do this, I am playing around with two laptops.
I thought that the package snow would come handy in this situation, but
to use snow, I would probably need to install
2008 Sep 27
1
Problem with R on dual core under Linux - can not execute mpi.spawn.Rslaves()
Hi
I am trying to utilize my dual core processor (and later a
High-performance clusters (HPC) ) by using the Rmpi, snow, snowfall,
... packages, but I am struggling at the beginning, i.e. to initialise
the "cluster" on my dual core computer. Whenever I try to initialize
it (via sfInit(parallel=TRUE, cpus=2) or mpi.spawn.Rslaves(nslaves=2)
), I get an error message:
>
2010 May 02
1
Problem installing/updating Rpmi
Hi
I have a few problems installing/updating packages with complicated
dependencies. For example, the Rmpi package:
update.packages(...)
checking for mpi.h... no
configure: error: "Cannot find mpi.h header file"
ERROR: configuration failed for package ?Rmpi?
So I tried:
>install.packages("Rmpi",configure.args="--with-mpi=/usr/lib/openmpi")
Trying to find
2008 Apr 08
1
Rmpi 0.5-6 : error spawning process
Hi,
I am using a cluster with LAM 7.1.3/MPI 2 and R 2.6.0.
Rmpi version 0.5-5 is working very well.
Now I have tested "Rmpi 0.5-6". During spawning the Rslaves I get an
error: MPI_Error_string: error spawning process
> sessionInfo()
R version 2.6.0 (2007-10-03)
x86_64-unknown-linux-gnu
locale:
2015 Dec 21
1
boost-openmpi problems in 7.2
Sorry to take so long to reply ...
On Thu, 2015-12-17 at 11:53 -0500, Tony Schreiner wrote:
> Did you load the compat-openmpi environment module?
>
> module load mpi/compat-openmpi16-x86_64
Yes, but you can't load both mpi/openmpi-x86_64 and?mpi/compat-
openmpi16-x86_64 as they are labelled as conflicting.
As I said, if you load just mpi/compat-openmpi16-x86_64 it can't find