Re: [R] Intel i7 utilization

2010-10-05 Thread Feng Li
 I guess you want a multi-threaded R. The cheapest way is to recompile 
R from the source and link it with an multi-threaded BLAS. See R-admin 
for details. See also Dirk's recent survey on this topic 
http://dirk.eddelbuettel.com/papers/gcbd.pdf I managed to do this under 
my linux box with Intel core 2 CPU which works well. But I haven't tried 
with i7 CPU.



Feng

On 10/05/2010 12:42 PM, Costas wrote:

 Hello,

Is there a way to force through R the amount of the cpu's cores (or 
the cpu's utilization level)  used under Windows 7 or Linux?


Thanks,
Costas



--
Feng Li
Department of Statistics
Stockholm University
106 91 Stockholm, Sweden
http://feng.li/

__
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.


Re: [R] Intel i7 utilization

2010-10-05 Thread Richardson, Patrick
Costas,

Take a look at this post that I found to be very helpful. The walkthrough is 
very easy to follow.
http://psyccomputing.blogspot.com/2010/04/compiling-64-bit-r-2101-with-mkl-in.html

I'm not sure if the i7 is supported however you can always replace
export FFLAGS=-march=core2 -O3
export CFLAGS=-march=core2 -O3
export CXXFLAGS=-march=core2 -O3
export FCFLAGS=-march=core2 -O3

with. . 
export FFLAGS=-march=native -O3
export CFLAGS=-march=native -O3
export CXXFLAGS=-march=native -O3
export FCFLAGS=-march=native -O3 

Best,

Patrick

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On 
Behalf Of Costas
Sent: Tuesday, October 05, 2010 6:42 AM
To: r-help@r-project.org
Subject: [R] Intel i7 utilization

  Hello,

Is there a way to force through R the amount of the cpu's cores (or the 
cpu's utilization level)  used under Windows 7 or Linux?

Thanks,
Costas

__
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 per...{{dropped:8}}

__
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.