[Rcpp-devel] RcppEigen needs 1GB memory to compile
Douglas Bates
bates at stat.wisc.edu
Mon Dec 2 20:52:22 CET 2013
The important thing is to use the -g0 flag. Even though RcppEigen is a
header-only package we include an example R function fastlm. If you leave
the symbols in the DLL file you get a massive library size whereas
stripping the symbols provides you with a much smaller file size. And
because packages that use RcppEigen only use the headers, not the DLL file,
it doesn't matter if the symbols are stripped.
On Mon, Dec 2, 2013 at 1:31 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> On 2 December 2013 at 11:17, Jeroen Ooms wrote:
> | I noticed that RcppEigen fails to install on my servers because it
> requires
> | more than 1gb of memory to compile. Is this expected? Are there any
> flags or
>
> Yes. It also falls over on R-Forge.
>
> | options I could set to trade of some memory for cpu? A short simulation:
>
> I have had to resort to similar tricks on some smaller architecture when
> autobuilding demanding Debian packages. Try -O0 -g0 for a start.
>
> Or if you need a smile, this still holds:
>
> http://dilbert.com/strips/comic/1995-06-24/
>
> Dirk
>
> --
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131202/ab6f7edd/attachment-0001.html>
More information about the Rcpp-devel
mailing list