From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,3e10dbc776740ba1 X-Google-Attributes: gid110292,public X-Google-Thread: fb9cd,3e10dbc776740ba1 X-Google-Attributes: gidfb9cd,public X-Google-Thread: 1164f8,3e10dbc776740ba1 X-Google-Attributes: gid1164f8,public X-Google-Thread: f57db,3e10dbc776740ba1 X-Google-Attributes: gidf57db,public From: henley Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers. Date: 1997/03/10 Message-ID: <332424A5.71BB@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 224404389 References: <5g120v$312@news-rocq.inria.fr> Organization: University of Minnesota Newsgroups: comp.benchmarks,comp.sys.intel,comp.sys.dec,comp.os.ms-windows.nt.misc Robert Harley wrote: > > henley writes: > >Zlatko Calusic wrote: > >>henley writes: > >>>Dell 133Mhz Pentium, NT4.0 : 34 Mflops/s > >>>Dec 333Mhz 21164, Digital Unix : 51 Mflops/s > >>>Dell 200Mhz ppro (256k cache) : 67 Mflops/s > >>>Dell 200Mhz dual ppro : 109 Mflops/s > >>486DX2/66 Linux 2.0.29 : 4 Mflops/s > >>Sun Ultra 1 143Mhz Solaris 2.5.1 : 32 Mflops/s > > > >I think my code is especially sensitive to fast cache / memory, because > >it is an example of code for which a pentium pro beats a fast alpha! > > Henley, I D/Led your source code. The first file to come over the > wire was arith.c so I looked over it while the rest was coming in. > The reason for it being so slow on Alpha was obvious! > > You have written your code for memory-op oriented machines like the > Intel chips. The Alpha is a register machine so you just have to tell > the compiler when it can keep things in registers. It took a few > minutes to put "const" in front of the src arguments in arith.c and > CG_arith.c, then "gcc -O4 -lm hybmc_all.c; a.out" gave: > > 266MHz Alpha: 91 Mflops > 500MHz Alpha: 163 Mflops Excellent! As I said, I did not spend any time optimizing the numerical routines for any machine, I was working on the algorithm. I used to use register and const keywords, but I thought modern compilers were beyond that... wow. Thanks for your comments. Henley