From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,100c510dac09e617 X-Google-Attributes: gid111c93,public From: luke@navo.hpc.mil (Luke Lonergan) Subject: Re: MFlops Comparison using g77 (bad news) Date: 1997/09/17 Message-ID: <5vnf3s$hbf@bgtnsc02.worldnet.att.net>#1/1 X-Deja-AN: 273141782 References: <5vl4lv$8ko@bgtnsc03.worldnet.att.net> <5vml8c$6kb$1@news.utrecht.NL.net> <341f1031.69553746@netnews.worldnet.att.net> <5vn7si$26q$1@palladium.transmeta.com> Organization: AT&T WorldNet Services Reply-To: luke@navo.hpc.mil Newsgroups: comp.os.linux.alpha On 17 Sep 1997 00:22:42 GMT, torvalds@transmeta.com (Linus Torvalds) wrote: >You left out the definitions for the variables, but let me guess: they >are all "int" rather than "long"? Correct. However, I implemented the indices as "long" type later to no effect. I was thinking of just declaring temporary pointers to the float arrays and incrementing them in the loop, but haven't done it yet because I think it won't change much. >Change them all to "long" and see whether that makes a difference. At >least in theory gcc should have a much easier time with long, simply >because then gcc is using only 64-bit quantities. Actually I checked the types of the indices and other variables from within gdb and found that they were all 32 bit. Registers that are allocated by the compiler are probably 64 bit, though. After some work, I changed _everything_ in the Fortran and C to be 64 bit, including the integers. Here is the result: 34 MFlops Alpha 433 MHz gcc with C kernel, all 64 bit 34 MFlops Alpha 433 MHz gcc with C kernel, 64 bit floats 28 MFlops Alpha 433 MHz g77, all 64 bit These aren't bad 64 bit numbers, but they aren't up to expectations. I will post the 64 bit source tree following this message. I would really like to see results on another compiler like NDP or NAG for the Alpha... Luke