From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,1177a02b35e507b5 X-Google-Attributes: gid111c93,public From: "Adam C. Powell, IV" Subject: Re: gcc/egcs C optimization Date: 1998/11/03 Message-ID: <363F3118.7A28BB64@nist.gov>#1/1 X-Deja-AN: 407972330 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en-US,en-GB Content-Type: text/plain; charset=us-ascii Organization: National Institute of Standards and Technology Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Conrad Sanderson wrote: > Berk Sensoy wrote: > > > Does anyone have any suggestions as to what would be the best > >compiler options to optimize (make the fastest at run-time) my code on an > >Alpha/Linux machine? I have a > >code that solves a biharmonic PDE by calling a Fortran subroutine. Our > >group just acquired an Alpha/Linux and we are trying to figure out how > >best to opimize its various capabilities vis-a-vis an Intel machine. > > -O3 -funroll-all-loops -fexpensive-optimizations > (may need to add -mieee depending on how the code is written) Thanks! This is a big help. > Getting a decent math library will make the most difference: > > http://people.frankfurt.netsurf.de/Joachim.Wesner/ Likewise, if your problem involves dense matrix multiply, or anything using it (e.g. LU-decomposition), Kazushige Goto's assembler gemm truly screams. Like 1.5 double-precision FLOPS/clock sustained! (Just under 2 peak.) Blows away everything else on the planet within 5-10 times the price. ftp://ftp.eni.co.jp/.2/Linux-Alpha-JP/ftp.statabo.rim.or.jp/BLAS/ > Note that with the current state of free compilers on Alpha, > you will probably end up getting better performance on > a Intel P2/450. Really?? Even for floating point? Do you have a P2/450 vs. alpha bnchmark? All of the programs I have built unmodified with egcs-1.0.3a and libffm run slightly faster (10-30%) than an SGI Origin 2000! (Goto's gemm is about 4 times faster than the hand-coded R10K BLAS gemm.) I'd have to see a convincing benchmark to believe P2 is any faster- for floating point (integer I'd believe)- everything I've seen says otherwise. Zeen, -Adam `Cold Fusion' Powell, IV _/\_ http://www.ctcms.nist.gov/~powell/ Call with Netscape Conference! \/ http://dls.netscape.com/ ____ USDoC, National Institute of Standards & Technology (NIST) |\ ||< | Center for Theoretical and Computational Materials Science | \||_> |