Re: [R] Optimizing compilation of R

2010-11-12 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Patrick,

thanks a lot. No, I am not using MKL, but I am going to try the flags
you mention in your blog.

Cheers,

Rainer


On 11/12/2010 03:58 PM, Richardson, Patrick wrote:
> Rainer,
> 
> The attached link might give you some insight. It's for compiling R
> with MKL. I'm not sure if you're using MKL or not (but it does make R
> faster). And to your question, it does contain code for setting flags
> which I have used and found to be beneficial.
> 
> http://psyccomputing.blogspot.com/2010/04/compiling-64-bit-r-2101-with-mkl-in.html
>
> 
> 
> Best,
> 
> Patrick
> 
> 
> -Original Message- From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Rainer M Krug 
> Sent: Friday, November 12, 2010 9:51 AM To: R-help Subject: [R]
> Optimizing compilation of R
> 
> Hi
> 
> I know this has been asked before, but I can not find it - so my
> apologies.
> 
> I want to compile R myself, to optimize it for speed. There is a
> small section (a few lines actually) in the R-admin manual
> (Compilation-flags) which states that the LDFLAGS "on recent systems 
> ''-Bdirect,--hash-style=both,-Wl,-O1'' is recommended".
> 
> But I set LDFLAGS, and it is actually slightly slower then the
> Ubuntu binary.
> 
> So are there any other ressources (probably HotTos?) on how I can
> tune the compilation of R to make it faster?
> 
> I am using Maverick, and R info is below:
> 
> 
>> sessionInfo()
> R version 2.12.0 (2010-10-15) Platform: i686-pc-linux-gnu (32-bit)
> 
> locale: [1] LC_CTYPE=en_US.utf8   LC_NUMERIC=C [3]
> LC_TIME=en_US.utf8LC_COLLATE=en_US.utf8 [5] LC_MONETARY=C
> LC_MESSAGES=en_US.utf8 [7] LC_PAPER=en_US.utf8   LC_NAME=C [9]
> LC_ADDRESS=C  LC_TELEPHONE=C [11]
> LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C
> 
> attached base packages: [1] stats graphics  grDevices utils
> datasets  methods   base
> 
> loaded via a namespace (and not attached): [1] tools_2.12.0
>> version
> _ platform   i686-pc-linux-gnu arch   i686 os
> linux-gnu system i686, linux-gnu status major  2 
> minor  12.0 year   2010 month  10 day
> 15 svn rev53317 language   R version.string R version
> 2.12.0 (2010-10-15) 
> 
> 
> Thanks,
> 
> Rainer
> 

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the
material from any computer.


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzdaA0ACgkQoYgNqgF2egr3FgCeO8gbjOuFdWB8VvPlnXAYgtTe
3ZoAn2n/O6RGu5rBULU9OA9O9EY5EYMU
=DcH/
-END PGP SIGNATURE-

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Optimizing compilation of R

2010-11-12 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I know this has been asked before, but I can not find it - so my apologies.

I want to compile R myself, to optimize it for speed. There is a small
section (a few lines actually) in the R-admin manual (Compilation-flags)
which states that the LDFLAGS "on recent systems
‘'-Bdirect,--hash-style=both,-Wl,-O1'’ is recommended".

But I set LDFLAGS, and it is actually slightly slower then the Ubuntu
binary.

So are there any other ressources (probably HotTos?) on how I can tune
the compilation of R to make it faster?

I am using Maverick, and R info is below:


> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i686-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_US.utf8   LC_NUMERIC=C
 [3] LC_TIME=en_US.utf8LC_COLLATE=en_US.utf8
 [5] LC_MONETARY=C LC_MESSAGES=en_US.utf8
 [7] LC_PAPER=en_US.utf8   LC_NAME=C
 [9] LC_ADDRESS=C  LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.12.0
> version
   _
platform   i686-pc-linux-gnu
arch   i686
os linux-gnu
system i686, linux-gnu
status
major  2
minor  12.0
year   2010
month  10
day15
svn rev53317
language   R
version.string R version 2.12.0 (2010-10-15)



Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzdVHEACgkQoYgNqgF2egqGEQCfSH59J4RgjDS8mcDjDWVEW/Fi
ri4An16SQEP6b3VCGGZVWEi9RVC+dzWp
=nyqn
-END PGP SIGNATURE-

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.