Re: [R] How can I use muliple cores of CPU in Windows or OS X?

2013-11-05 Thread Simon Pickert
Mcapply from package 'parallel'. Also see package 'multicore'


 Am 06.11.2013 um 00:01 schrieb Agony agony_...@yahoo.com:
 
 Dear all,
 
 I have about 50 pages of R codes and ran it in both OS X and Windows.
 It takes at least haft a day to have the results. The running time is not 
 very different in both Systems.
 I found that R does not use all cores of CPU by default.
 Can anybody help me to use all cores of CPU in my programming from the 
 beginning or through programming in both OS X and Windows?
 
 Many thanks your attention and help in advance.
 
 Best,
 Amir
 
 __
 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-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] How can I use muliple cores of CPU in Windows or OS X?

2013-11-05 Thread Uwe Ligges



On 06.11.2013 00:26, Simon Pickert wrote:

Mcapply from package 'parallel'. Also see package 'multicore'


Not mcapply: it won't work under Windows that the OP asked for.

But package parallel is the right hint. It also provides other 
parallelization techniques that will work under Windows.


Best,
Uwe Ligges







Am 06.11.2013 um 00:01 schrieb Agony agony_...@yahoo.com:

Dear all,

I have about 50 pages of R codes and ran it in both OS X and Windows.
It takes at least haft a day to have the results. The running time is not very 
different in both Systems.
I found that R does not use all cores of CPU by default.
Can anybody help me to use all cores of CPU in my programming from the 
beginning or through programming in both OS X and Windows?

Many thanks your attention and help in advance.

Best,
Amir

__
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-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-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] How can I use muliple cores of CPU in Windows or OS X?

2013-11-05 Thread Peter Langfelder
On Tue, Nov 5, 2013 at 3:36 PM, Uwe Ligges
lig...@statistik.tu-dortmund.de wrote:


 On 06.11.2013 00:26, Simon Pickert wrote:

 Mcapply from package 'parallel'. Also see package 'multicore'


 Not mcapply: it won't work under Windows that the OP asked for.

 But package parallel is the right hint. It also provides other
 parallelization techniques that will work under Windows.

Packages foreach and doParallel provide ways of writing parallel code
that will run on all systems, without having to worry about details of
parallel computation on each platform.

HTH,

Peter

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