From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,c6ee262d6492cc0e X-Google-Attributes: gid111c93,public From: Joachim Wesner Subject: Re: Using DEC compilers on a Linux Alpha cluster Date: 1998/07/29 Message-ID: <35BF636D.447ACC9F@frankfurt.netsurf.de>#1/1 X-Deja-AN: 376065000 Content-Transfer-Encoding: 7bit References: <35BDDDA7.F1EB5084@mema.ucl.ac.be> <6pkpqs$92d@news1.newsguy.com> <35BECDE5.559DE104@mema.ucl.ac.be> Content-Type: text/plain; charset=us-ascii X-Trace: 29 Jul 1998 20:03:58 -0200, deck-144.frankfurt.netsurf.de Organization: OMNILINK -- your link to the Net MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Xavier Gallez wrote: > > Greg Lindahl wrote: > > In your single-node benchmarks, I assume that your FFTW code does a > > lot of math library calls, so much of gcc's performance problem at > > small problem sizes is due to the math library. At large problem si > Concerning the > type of arithmetic operations, FFTW uses intensively tabulated values in > order to limit math library calls. As I understand it, there are only a > few calls to sin and cos at each iteration, many less than explicit > additions and multiplications. It would be a good idea to check the FFTW > homepage for further information (http://theory.lcs.mit.edu/~fftw). Not quite, to my knowledge. Any modern, non brain dead fp FFT implementation does the heavy calculation of sin and cos values by a recurrence relation, instead of using function routines. This is the idea of treating cos and sin as the components of a vector and to caclculate the "next" cos/sin value by applying a rotation matrix, i.e. only few adds and mults. You need the function routines, however, in the OUTER loops to calculate the coefficients of the rot matrix. YES, FFTW uses tables to store the optimum decomposition of the recursive FFT problem on the machine in question, that's what they call "adaptive" and that's what you generate with FFTW_MEASURE and what's stored as "wisdom". Joachim