Displaying 20 results from an estimated 36 matches for "rsprng".
2007 May 18
1
Cannot install rsprng package (PR#9697)
<<insert bug report here>>
I cannot install the R package "rsprng" with the following error message:
> install.packages("rsprng")
trying URL 'http://www.stathy.com/cran/src/contrib/rsprng_0.3-4.tar.gz'
Content type 'application/x-tar' length 35934 bytes
opened URL
==================================================
downloaded 35K...
2002 Dec 17
1
rsprng doesn't install on Debian (woody) (PR#2378)
Full_Name: Emmanuel Charpentier
Version: 1.6.1
OS: Linux 2.4.20 / Debian Woody
Submission from: (NULL) (80.15.78.96)
rsprng depends on libraries available in the "genesis" package. However, even
when Genesis is installed, the installation of the source package fails for not
finding rsprng.h. It turns out that Debian installs it in a subdirectoru of
/usr/include, and that the rsprng packages assumes that it is...
2012 Aug 08
1
random number generator with SNOW/ Parallel/ foreach
...}
maxkk <- 5
cl <- makeCluster(5, type = "SOCK")
registerDoSNOW(cl)
results=foreach (i = 1:maxkk, .combine = 'rbind') %dopar% testfun()
results
stopCluster(cl)
#################
2. Suppose I want to use *snow*, according to some reference, I need to use
*rsprng* as a generator. Does this generator relay on seed as well? But it
seems to me that if I do not use rsprng, it is also fine.
## code without rsprng ##
testfun <- function(){
a <- rnorm(5,0,1)
return(a)
}
library(snow)
cl <- makeCluster(5,type="SOCK")
clusterCall(cl,...
2010 Feb 18
2
sprng 2.0 header file for Rmpi
When I try to install Rmpi, it has a dependency rsprng which, as its
description says: Provides interface to SPRNG 2.0 APIs
I installed it on Mepis by installing the appropriate debs with
minimal drama. In the rpm world of Fedora, no such luxury.
Installing rsprng fails because:
checking sprng.h usability... no
checking sprng.h presence... no
che...
2005 Jul 27
1
rpart.permutation, snow, rsprng binary files
Dear R-users,
Does anyone of you have binary files for the packages rpart.permutation,
snow and rsprng. I would like to use them in my classification tree. I
know they are still at the 0.x development stage, though.
Where can I get information on how to compile tar.gz files? I'm using
windows XP with R 2.1.0.
Thanks,
Jan
--------------------------------------------------------------------
Jan...
2008 Mar 05
0
rsprng, snow, rmpi interactions
...hat is, I want
each distributed process to recreate exactly the same random numbers
that it did before; I assume SPRNG assures the streams are independent
betweeen processes.
Here's what I did, trying to stick within SNOW to avoid trouble (from
memory):
lamboot
start up R
library(snow)
library(rsprng)
library(rmpi)
cl<-makeMPIcluster(11)
clusterSetupSPRNG(cl, seed=123)
clusterEvalQ(cl, source("mycode.R"))
r<-parSapply(cl, seq(1000), function(i) doMyThing()))
Any comments on that? For example, would sticking to Rmpi and using
parSim make sense (I'm not using seq(1000) for a...
2009 Jul 30
3
user supplied random number generators
...number of 32 bit
integers. The code for PutRNGstate(), for example, uses them in just
that way.
While the dominant model, even on 64 bit hardware, is probably to leave
int as 32 bit, it doesn't seem wise to assume that is always the case.
I got into this because I'm trying to extend the rsprng code; sprng
returns its state as a vector of bytes. Converting these to a vector of
integers depends on the integer length, hence my interest in the exact
definiton of integer. I'm interested in lifetime because I believe
those bytes are associated with the stream and become invalid when the...
2007 Jun 19
1
Rmpi and rsprng for Windows
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070619/1a8935fe/attachment.pl
2007 Jun 30
1
random numbers
Although this query was inspired by distributed random number
generation, one of the questions (#2 below) is a single-machine issue.
I call C++ code from R to generate simulated data. I'm doing this on a
cluster, and use rmpi and rsprng. While rsprng randomizes R-level
random numbers (e.g., from runif), it has no effect on the C code, which
is completely SPRNG and MPI ignorant.
Currently I generate a seed to pass into the C code, using
as.integer(runif(1, max=.Machine$integer.max)-.Machine$integer.max/2)
It seems to work.
Any c...
2011 Mar 14
1
Installing Rmpi on hpc
Hi,
I was trying to install the package Rmpi on a hpc cluster running SGE. The
command, and the sessionInfo() is as follows:
===========================================
> install.packages("Rmpi",dependencies=TRUE)
also installing the dependency ‘rsprng’
trying URL '
http://www.ibiblio.org/pub/languages/R/CRAN/src/contrib/rsprng_1.0.tar.gz'
Content type 'application/x-gzip' length 35916 bytes (35 Kb)
opened URL
==================================================
downloaded 35 Kb
trying URL '
http://www.ibiblio.org/pub/language...
2011 Dec 12
1
(no subject)
...ll ok installed
Priority: optional
Section: gnu-r
Installed-Size: 408
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: rmpi
Version: 0.5-8-1
Depends: libc6 (>= 2.4), libopenmpi1.3, r-base-core (>= 2.10.1), mpi-default-bin
Suggests: r-cran-rsprng
Description: GNU R package interfacing MPI libraries for distributed computing
This CRAN package provides an interface to the MPI (Message-Passing
Interface) API. It also provides an interactive R slave environment
in which distributed statistical computing can be carried out.
Original-Maintaine...
2008 Sep 03
2
Does rattle depend on testing's ggobi?
Hello All,
I'm trying to install rattle from source on a AMD64 machine running etch. I
have two packages installed from the etch backport
(r-cran-rodbc and r-cran-rsprng) but all the rest installed from source. I'm
trying to install rattle, but
install.packages("rattle", dependencies=TRUE)
Tries to install rggobi, which complains about the version of libggobi. Does
this mean that there isn't a way I can install rattle on etch?
* Installing...
2005 Jun 08
6
Random seed problem in MCMC coupling of chains
...758
iter: 2 chain: 1 runif: 0.7883
iter: 3 chain: 1 runif: 0.40898
iter: 1 chain: 2 runif: 0.28758
iter: 2 chain: 2 runif: 0.7883
iter: 3 chain: 2 runif: 0.40898
iter: 1 chain: 3 runif: 0.28758
iter: 2 chain: 3 runif: 0.7883
iter: 3 chain: 3 runif: 0.40898
I was looking in 'rlecuyer', 'rsprng' and 'setRNG', but did not find
anything usable for me. From reading on http://sprng.cs.fsu.edu/
'rsprng' provides just opposite of what I want, 'rlecuyer' is a bit
to technical for me, but I think it also doesn't give identical
seed for parallels. 'setRNG'...
2009 Nov 16
2
(Parallel) Random number seed question...
...the period really related to 2^32,
or is it dependent the architecture, 2^64 for 64 bit R and 2^32 for 32
bit R?
I noticed there are several packages related to RNG- please direct me
to a vignette/R news article/previous post if this has been covered ad
nauseum. I have skimmed vignettes/docs for rsprng package, RNG doc in
base, setRNG package, mvtnorm package vignette (Or am I setting
myself up to write a current RNG doc?)
(directed to Gregory Warnes)
I found a presentation by Gregory Warnes from 1999 addressing these
same questions (and uses a "collings generator" in some C code).
h...
2003 Dec 01
2
help with random numbers and Rmpi
...m 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 this
is rather over my head. I'm trying to use rsprng and sprng, but I am sure
what I am currently doing is wrong.
I enclose a first attempt. Any suggestions would be appreciated. Thanks in
advance.
Faheem.
*************************************************************************
ran...
2009 Aug 24
1
R with MPI
...;Rmpi", dependencies=T)
I get this error:
checking for mpi.h... no
Try to find libmpi.so or libmpich.a
checking for main in -lmpi... no
libmpi not found. exiting...
However, mpi.h is present via the openmpi-devel package on my RHEL 5.3.
Some of those packages need sprng 2.0 (rsprng, for instance, which is a
dependency for another MPI-related package). Sprng 2.0, however, isn't in
developement for years, I wonder how I am supposed to keep my software up to
date...
Any ideas on how to workaround that mpi.h problem?
Please help,
--polemon
[[alternative HTML version dele...
2005 Sep 01
1
controlling where *.Rout gets printed. Possible?
...ce","gap","gnomeGUI","mimR","ncdf","pathmix","rcdd","rgdal","rpvm",
"Rmpi","RQuantLib","RMySQL",
"RNetCDF","RODBC","ROracle","RScaLAPACK","rsprng","RWinEdt","taskPR")
shouldFail <- theNew %in% failPackages
install.packages( theNew[!shouldFail],dependencies=T)
# VGAM is not in CRAN yet, but Zelig wants it.
# install.packages("VGAM", CRAN="http://www.stat.auckland.ac.nz/~yee");
update.packa...
2010 Jul 06
2
Rcmdr installation under Unbuntu installatiion errors
...RUE) :
installation of package 'Rmpi' had non-zero exit status
2: In install.packages("Rcmdr", dependencies = TRUE) :
installation of package 'rpvm' had non-zero exit status
3: In install.packages("Rcmdr", dependencies = TRUE) :
installation of package 'rsprng' had non-zero exit status
4: In install.packages("Rcmdr", dependencies = TRUE) :
installation of package 'tkrplot' had non-zero exit status
5: In install.packages("Rcmdr", dependencies = TRUE) :
installation of package 'rgl' had non-zero exit status
6: In...
2007 Aug 21
1
clusterCall with replicate function
...ed the function so that replicate is
used to call the clusterCall function (ie. replicate(2, clusterCall(cl,
runif,2),simplify=F) ) and resolved the random number issue. However, this
also involves much more communication between master and slaves and results
in slower computation time. Will rsprng fix this problem? Is there a
better way to do this without using replicate?
I hope this is somewhat clear.
Thanks,
Mike
2011 Feb 03
1
problem with parLapply from snow
...mpi)
require(snow)
cat("Using snow package, asking for ", Nnodes, "nodes \n")
cl <- makeCluster(Nnodes, type="MPI")
on.exit(stopCluster(cl))
#print(do.call("rbind", clusterCall(cl, function(cl) Sys.info()["nodename"])))
#
## uses RSPRNG if there
#
#clusterSetupSPRNG(cl)
clusterSetupRNGstream(cl, seed = rep(123456, 6))
yu <- clusterCall(cl, runif, Nsamples)
yusum <- parLapply(cl, yu, sum)
print(yusum)
yn <- clusterCall(cl, rnorm, Nsamples)
print(yn)
return()
}
This is under R-2.12...