From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,7f0e37b7ae43fc9e X-Google-Attributes: gid111c93,public From: Tony Hammitt Subject: Re: Compaq C-compiler - what am I doing wrong? Date: 1999/11/05 Message-ID: <382227B9.39EF4F17@kc.rr.com>#1/1 X-Deja-AN: 544616811 Content-Transfer-Encoding: 7bit References: <7vsosn$qfi$1@nntp6.u.washington.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon2.kc.rr.com 941762490 24.94.177.65 (Thu, 04 Nov 1999 18:41:30 CST) MIME-Version: 1.0 NNTP-Posting-Date: Thu, 04 Nov 1999 18:41:30 CST Newsgroups: comp.os.linux.alpha Jimmy Eng wrote: > > I'm looking a bit of help here. I have a DS10 that > has Linux 2.2.12 installed on it along with the latest > Compaq C-compiler beta release (ccc-6.2.0-8.alpha.rpm). > > I was hoping to see the 466MHz DS10 outperform my the > current 533MHz 164LX Alphas that I currently have in > my cluster. However, performance for my application is > actually slower on the DS10 than on the 164LX's (as well > as a 500MHz 21164A AlphaStation 500). The difference in > performance could be on the order of the difference in > clock speeds but I don't have the numbers in front of > me to verify exactly. > > Anyways, it appears that something's not working right > for me obviously since the performance of the DS10 should > be better. I've looped through a portion of my application > that calculates FFTs and timed the ccc (Compaq's C) compiler > (turning on optmizations including -tune host -arch host) > against gcc that came with the OS (RedHat 6.0) and there's > virtually no difference in performance on the DS10! > > Any ideas? > > - Jimmy > Software Engineer, Department of Molecular Biotechnology > University of Washington I personally use '-fast -O4' as my optimization options. If you're doing FFTs, maybe you should look into 'cxml', which is available from the same place you got the compiler. It has FFTs in it that (I'm assuming) Compaq (probably actually Digital) optimized already for your architecture. If ccc isn't faster than gcc, there's something wrong. How explicit is your FFT code? Do you do a lot of 'a = b * c;' type of statements, or are there more function calls? I've found that the optimizer likes long chains of explicit statements, it gives the scheduler more to chew on so it can avoid pipeline stalls (which gcc doesn't even look at). If you try out cxml, could you write back to the group and tell us what the performance characteristics are? We'd really appreciate it. Regards, Tony Hammitt thammitt@kc.rr.com