[R] optimization of R on SGI/IRIX

Luke Tierney luke at stat.umn.edu
Fri Apr 26 14:10:53 CEST 2002


On Fri, Apr 26, 2002 at 07:29:23AM +0100, Prof Brian D Ripley wrote:
> On Thu, 25 Apr 2002, Boryeu Mao wrote:
> 
> > For R-1.4.0, I have been able to build R.bin with -O2 flag.  This however
> > did not yield any significant speed-up for my code.  I then tried building
> > the binary for 64 bit, but had not been able to configure the build; none of
> > the suggestions that I can find in the r-help search worked for me.  I'm
> > looking for any other suggestions -- TIA
> >
> > mod:>> uname -a
> > IRIX64 mod 6.5 10100655 IP35
> 
> R 1.4.1 (at least) has suggestions in the R-admin.texi manual for IRIX 6.5.
> Given the imminence of R 1.5.0 we would suggest that you work with
> the R-devel.tar.gz version in preparation for the release on Monday, and
> definitely not with the version-before-last.
> 

For R 1.5.0 I built a 64-bit version on IRIX using IRIX compilers by
configuring with

	./configure CC="cc -64" F77="f77 -64" --with-tcltk=no

which is also given in R-admin.texi.  (You need a slightly different
command for 1.4.x but that is also given in the R-admin.texi for that
release.)  For me this produces

  C compiler:                cc -64  -OPT:IEEE_NaN_inf=ON -g
  C++ compiler:              g++  -g -O2
  FORTRAN compiler:          f77 -64  -OPT:IEEE_NaN_inf=ON -g

and builds and passes make check.  It is about 10% slower than the 32
bit version at running the base checks.  If you want optimization you
will need to tell configure to use the appropriate CFLAGS and FFLAGS

luke

-- 
Luke Tierney
University of Minnesota                      Phone:           612-625-7843
School of Statistics                         Fax:             612-624-8868
313 Ford Hall, 224 Church St. S.E.           email:      luke at stat.umn.edu
Minneapolis, MN 55455 USA                    WWW:  http://www.stat.umn.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list