[Rcpp-devel] Rcpp-devel Digest, Vol 4, Issue 14
talich at gmail.com
Wed Feb 17 19:51:15 CET 2010
Segmentation error is my stupid typo. The memory assignment in line 19
surely should be
double *allvalues = new double [ nodesize ]; // to save all results
double *allvalues = new double ( nodesize ); // to save all results
The new makefile did not work on my MBP still because of the mtune
parameter. Basically I have to use
CXXFLAGS := $(MPILIBS) $(RCPPFLAGS) $(RCPPINCL) $(RINSIDEINCL) -g -O2
Surely you can add these examples to next RInside tarball.
On Tue, Feb 16, 2010 at 4:00 AM,
<rcpp-devel-request at lists.r-forge.r-project.org> wrote:
> Message: 1
> Date: Mon, 15 Feb 2010 15:40:26 -0600
> From: Dirk Eddelbuettel <edd at debian.org>
> Subject: Re: [Rcpp-devel] mpi and RInside
> To: Jianping Hua <talich at gmail.com>
> Cc: rcpp-devel at lists.r-forge.r-project.org
> Message-ID: <19321.48970.559109.580495 at ron.nulle.part>
> Content-Type: text/plain; charset=us-ascii
> Very cool. Thanks for posting this!
> [ snip ]
> That works. I did the following (using Open MPI on Linux)
> a) define new variables
> # OpenMPI header and libraries
> MPICPPFLAGS := $(shell mpic++ -showme:compile)
> MPILIBS := $(shell mpic++ -showme:link)
> b) use these variables
> CXXFLAGS := $(MPICPPFLAGS) $(RCPPFLAGS) $(RCPPINCL) $(RINSIDEINCL) $(shell $(R_HOME)/bin/R CMD config CXXFLAGS)
> LDLIBS := $(MPILIBS) $(RLDFLAGS) $(RBLAS) $(RLAPACK) $(RCPPLIBS) $(RINSIDELIBS)
> [ snip ]
> This example seg faults for me on the
> delete allvalues;
> Maybe w have to make sure that node 0 is the one allocating and doing the
> | I hope this information is useful.
> Very much so! This brings RInside right back to the MPI part of my HPC
> exercises :)
> Would you permit us to include your example, with the altered Makefile, as
> additional examples in the RInside tarball?
> Thanks again for posting this!
> Regards, Dirk
> Registration is open for the 2nd International conference R / Finance 2010
> See http://www.RinFinance.com for details, and see you in Chicago in April!
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> End of Rcpp-devel Digest, Vol 4, Issue 14
More information about the Rcpp-devel