Re: [Rd] Plans for multithreading?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 31 Aug 2007 16:48:39 +0100 (BST)

On Fri, 31 Aug 2007, D. R. Evans wrote:

> I was surprised, given the vector-ish nature of R, to see that
> (according to my CPU meters) there doesn't seem to be any obvious
> multithreading in R.
>
> Are there any plans to change this?

Yes, and some multithreading is done with some external BLAS, which is probably where there is the most obvious scope for benefit.

The problem is that unless the vectors are long the costs of using multiple threads can exceed the gain in using multiple CPUs: we have seen dramatic slowdowns using reputable multithreaded BLAS.

Other parts of R are under active consideration for using multiple threads: for example now Open MP is fairly widely available (in gcc >= 4.2.0 and some earlier RedHat backports) this may be easier to do in a portable way.

I think you probably did not mean the ability to run multiple R interpreters in separate threads -- that has been discussed for many years (e.g. at DSC 2001).

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 31 Aug 2007 - 15:51:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 31 Aug 2007 - 20:41:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.