From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,fb196a030985e9bc X-Google-Attributes: gid111c93,public X-Google-Thread: 1164f8,fb196a030985e9bc X-Google-Attributes: gid1164f8,public From: "James Van Buskirk" Subject: Re: Is FFT inherently slow on Alpha CPUs? Date: 1999/10/14 Message-ID: <7u5d8l$tk7$1@nntp4.atl.mindspring.net>#1/1 X-Deja-AN: 536797203 References: <38063F40.8EE3A106@nospam.com> X-Server-Date: 14 Oct 1999 20:08:53 GMT X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: MindSpring Enterprises Newsgroups: comp.os.linux.alpha,comp.sys.dec G. Hugh SONG wrote in message <38063F40.8EE3A106@nospam.com>... >I realized that sine and cosine are the Achilles heel of the Alpha CPU. >On the new sun with double CPUs, the FFT benchmark is twice faster than >on Alpha 21164. >On all other benchmark programs (Polyhedron, if you care to know), our >old Alpha 21164 533MHz is still about 1.5 times faster. That is not >actually bad. I know. >Is my understanding correct? Does FFT rely on sine and cosine even for >2's radix or something? I don't think so. This result bugged me, too, so I took a glance at the code. I seem to recall that the number of trig function calls was essentially negligible, but that they were ony done once in any case followed by 20 FFTs. The trig functions were put in a huge table and there was also a huge index table... this looks like one of those old codes where the author assumed that memory access is cheap: not a valid assumption nowadays. If you're interested, I typed in some code from a paper referenced in comp.lang.fortran and created a file that compares the performance between the old and new versions. The new version is faster but seems to suffer from lack of page coloring under NT; if you can get a patch to enable this under Alpha Linux you might be able to confirm that this is truly the reason for the widely variable performance of the improved FFT. If you want to further communicate on this topic, it might be advisable to also send email to me as my news server is currently experiencing difficuties.