As far as I can see by searching the archieves, R could not take advantage of two processors in the same machine but there were plans for implementing multithreading in R. Is this work going on? On the other hand, if two processors are present in the same linux machine is it possible to focus one processor on tasks of the operative system and the other on R and/or other real computing? Could anyone point me to info on this subject? Agus Dr. Agustin Lobo Instituto de Ciencias de la Tierra (CSIC) Lluis Sole Sabaris s/n 08028 Barcelona SPAIN tel 34 93409 5410 fax 34 93411 0012 alobo at ija.csic.es -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On OS X the ATLAS library uses threading (as well as Altivec on G4's). Of course the OS is threaded as well. On Monday, January 21, 2002, at 02:23 PM, Agustin Lobo wrote:> > As far as I can see by searching the archieves, R could not > take advantage of two processors in the same machine but there > were plans for implementing multithreading > in R. Is this work going on? > > On the other hand, if two processors are > present in the same linux machine is it possible to focus one > processor on tasks of the operative system and the other > on R and/or other real computing? Could anyone point me > to info on this subject? > > Agus > > Dr. Agustin Lobo > Instituto de Ciencias de la Tierra (CSIC) > Lluis Sole Sabaris s/n > 08028 Barcelona SPAIN > tel 34 93409 5410 > fax 34 93411 0012 > alobo at ija.csic.es > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > .-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R- > FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ > ._._._ > >==Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw at stat.ucla.edu homepage: http://www.stat.ucla.edu/~deleeuw ======================================================= No matter where you go, there you are. --- Buckaroo Banzai http://www.stat.ucla.edu/~deleeuw/sounds/nomatter.au ======================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "AL" == Agustin Lobo <alobo at ija.csic.es> writes:AL> As far as I can see by searching the archieves, R could not AL> take advantage of two processors in the same machine but there AL> were plans for implementing multithreading in R. Is this work AL> going on? AL> On the other hand, if two processors are present in the same AL> linux machine is it possible to focus one processor on tasks AL> of the operative system and the other on R and/or other real AL> computing? Could anyone point me to info on this subject? There is always the truly coarse user-level approach: RPVM (instead of threads, you are looking at processes, with flexible inter-process communication). The API is reasonably straightforward, and the additional plus is that we (well, Michael) should soon have the SPRNG library usable by R, for a reasonably verified parallel pseudo-RNG. best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------------- http://software.biostat.washington.edu/ ---------------- FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX --- I'm 40% time until March 1st. Try email the other 3 days.... ----- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On our Linux box (2 P-3 Xeons running 2.4.3 SMP kernel), I can get *some* operations to use both cpus simultaneously with either threaded ATLAS or MKL (which is threaded as well). For example, crossprod(x) can make use of both cpus. It's not too clear to me which calls can be threaded and which can't. In any case, this is only for linear algebra, not general computations, so unless sizable chunk of your task can make use of BLAS, you're not likely to see much gain here. One this machine, MKL seems to be up to 25% faster than ATLAS. The strange thing about threaded ATLAS is that, although it's fast at doing crossprod(), the speed of other computations are slower than the non-threaded ATLAS. I have no idea why this is. Cheers, Andy> -----Original Message----- > From: Jan de Leeuw [mailto:deleeuw at stat.ucla.edu] > Sent: Monday, January 21, 2002 9:49 PM > To: Agustin Lobo > Cc: r-help > Subject: Re: [R] R and 2 processors > > > On OS X the ATLAS library uses threading (as well as Altivec on G4's). > Of course the OS is threaded as well. > > On Monday, January 21, 2002, at 02:23 PM, Agustin Lobo wrote: > > > > > As far as I can see by searching the archieves, R could not > > take advantage of two processors in the same machine but there > > were plans for implementing multithreading > > in R. Is this work going on? > > > > On the other hand, if two processors are > > present in the same linux machine is it possible to focus one > > processor on tasks of the operative system and the other > > on R and/or other real computing? Could anyone point me > > to info on this subject? > > > > Agus > > > > Dr. Agustin Lobo > > Instituto de Ciencias de la Tierra (CSIC) > > Lluis Sole Sabaris s/n > > 08028 Barcelona SPAIN > > tel 34 93409 5410 > > fax 34 93411 0012 > > alobo at ija.csic.es > > > > > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.-.-.-.- > > .-.-.- > > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R- > > FAQ.html > > Send "info", "help", or "[un]subscribe" > > (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch > > > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._._._._ > > ._._._ > > > > > ==> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; > US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 > phone (310)-825-9550; fax (310)-206-5658; email: > deleeuw at stat.ucla.edu > homepage: http://www.stat.ucla.edu/~deleeuw > =======================================================> No matter where you go, there you are. --- Buckaroo Banzai > > http://www.stat.ucla.edu/~deleeuw/sounds/nomatter.au > =======================================================> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.-.-.-.-.-.-.- > r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._