Re: [R] Multi-threads in R

2012-06-17 Thread Fabrice Tourre
I think multicore is one of answer if you can write your function in to lapply. On Mon, Jun 18, 2012 at 12:14 PM, R. Michael Weylandt wrote: > I would argue (somewhat emphatically) that the parallel facilities you > are looking at are absolutely not for `for` loops. `for` loops are a > control st

Re: [R] Multi-threads in R

2012-06-17 Thread R. Michael Weylandt
I would argue (somewhat emphatically) that the parallel facilities you are looking at are absolutely not for `for` loops. `for` loops are a control structure native to imperative programming and, as such, are inherently stateful. This provides many advantages, but easy parallelization is absolutely

Re: [R] Multi-threads in R

2012-06-17 Thread Gary Dong
Thanks for all replied. I read the introduction of R parallel. Is it for loops only? Gary On Sun, Jun 17, 2012 at 10:04 AM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > Take a look at the parallel package which ships with all current versions > of R. > > Michael > > On Jun 17, 2

Re: [R] Multi-threads in R

2012-06-17 Thread Uwe Ligges
On 17.06.2012 19:04, R. Michael Weylandt wrote: Take a look at the parallel package which ships with all current versions of R. which is the right answer for the body of the message. For the subject line: Take a look at multi-threaded BLAS which can be used with R. Uwe Ligges Michael O

Re: [R] Multi-threads in R

2012-06-17 Thread R. Michael Weylandt
Take a look at the parallel package which ships with all current versions of R. Michael On Jun 17, 2012, at 11:39 AM, Gary Dong wrote: > Dear R users, > > I'm wonder if there is a easy way to make R use multi-CPUs on my computer. > My computer has four CPUs but R uses only one. Thanks. > > G

[R] Multi-threads in R

2012-06-17 Thread Gary Dong
Dear R users, I'm wonder if there is a easy way to make R use multi-CPUs on my computer. My computer has four CPUs but R uses only one. Thanks. Gary [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch