From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb9cd,3e10dbc776740ba1 X-Google-Attributes: gidfb9cd,public X-Google-Thread: f57db,3e10dbc776740ba1 X-Google-Attributes: gidf57db,public X-Google-Thread: 110292,3e10dbc776740ba1 X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,3e10dbc776740ba1 X-Google-Attributes: gid1164f8,public From: Achim Gratz Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers. Date: 1997/03/15 Message-ID: #1/1 X-Deja-AN: 225752832 Sender: gratz@ite127.inf.tu-dresden.de References: <5g120v$312@news-rocq.inria.fr> Organization: Institute of Computer Engineering, CS department, TU Dresden, Germany Newsgroups: comp.benchmarks,comp.sys.intel,comp.sys.dec,comp.os.ms-windows.nt.misc hedrick@geneva.rutgers.edu (Charles Hedrick) writes: > I just tried a 167 MHz Sun Ultra 1, and got 61 Mflops. This is with > code I just got, so presumably it has the newest RISC optimizations in > it. These are not current machines: there are now 200 and 250 MHz > Ultras available. Compiled with Sun's C compiler version 4.0, -fast. Try with `-fast -xO5 -xsafe=mem -xtarget=ultra1/170 -xarch=v8plusa -xrestrict' and see it jump to 80 MFlop (on the same machine). The original version comes out at 72 MFlops. Some compilers are better than others and I found the compilers for Alpha always seem to need more nudging. But that's beside the point. The code is really ugly (sorry Mr.Henley). I couldn't find out for instance how to drop in CGS instead of CG (and I have implemented both before). Is this a nonlinear CG procedure? And the matrix_matrix_multiply makes me dizzy. It looks more like a cross product or where are the minusses coming from? FORTRAN in C, so why don't write it in FORTRAN and get the better optimizations F77 compilers are entitled to? BTW, this is an linear algebra benchmark: %Time Seconds Cumsecs #Calls msec/call Name 15.3 142.91 142.91 513056 0.2785 matrix_matrix_multiply 15.0 140.26 283.17 237792 0.5898 calc_UV_sub_UdagV_add 11.7 109.68 392.85 1000 109.680 update_U 7.8 73.23 466.08 317072 0.2310 calc_UdagV 7.3 68.49 534.57 192000 0.3567 matrix_dag_matrix_multiply 7.3 68.43 603.00 511 133.91 conjugate_gradient 6.7 62.63 665.63 staple_sli 5.5 51.47 717.10 79280 0.6492 calc_UV_sub_UdagV_start 5.4 50.36 767.46 19816 2.5414 D_slash 5.3 49.78 817.24 237792 0.2093 calc_UV_sub_TL_add 3.5 32.59 849.83 97056 0.3358 matrix_dag_matrix_dag_multiply 2.5 23.05 872.88 500 46.10 reunitarize 2.0 18.95 891.83 monte_carlo The rest is below 2% (fast_routines.c was not used). Now the same for the "fast RISC" routines: %Time Seconds Cumsecs #Calls msec/call Name 16.2 138.55 138.55 513056 0.2700 matrix_matrix_multiply 13.5 114.85 253.40 237792 0.4830 calc_UV_sub_UdagV_add 9.2 78.70 332.10 237792 0.3310 calc_UV_sub_TL_add 8.9 75.75 407.85 843200 0.0898 sl_shift 8.5 72.95 480.80 317072 0.2301 calc_UdagV 8.0 68.67 549.47 511 134.38 conjugate_gradient 7.6 64.61 614.08 192000 0.3365 matrix_dag_matrix_multiply 5.3 45.03 659.11 448000 0.1005 scalar_mult_add_matrix 5.0 42.35 701.46 79280 0.5342 calc_UV_sub_UdagV_start 3.9 33.58 735.04 97056 0.3460 matrix_dag_matrix_dag_multiply 3.7 31.56 766.60 staple_sli 2.7 23.03 789.63 500 46.06 reunitarize 2.6 22.48 812.11 79280 0.2836 calc_UV_sub_TL_start Ooops! Some routines actually got slower by "optimizing" them. Getting this straight is probably another minute of runtime. %Time Seconds Cumsecs #Calls msec/call Name 17.4 143.99 143.99 513056 0.2807 matrix_matrix_multiply 13.8 114.10 258.09 237792 0.4798 calc_UV_sub_UdagV_add 9.4 77.36 335.45 843200 0.0917 sl_shift 8.7 71.92 407.37 317072 0.2268 calc_UdagV 8.1 67.19 474.56 511 131.49 conjugate_gradient 7.9 65.14 539.70 192000 0.3393 matrix_dag_matrix_multiply 6.4 52.98 592.68 237792 0.2228 calc_UV_sub_TL_add 5.2 43.26 635.94 79280 0.5457 calc_UV_sub_UdagV_start 5.1 42.22 678.16 448000 0.0942 scalar_mult_add_matrix 4.2 34.38 712.54 staple_sli 4.0 32.85 745.39 97056 0.3385 matrix_dag_matrix_dag_multiply 2.8 23.10 768.49 500 46.20 reunitarize 2.0 16.49 784.98 79280 0.2080 calc_UV_sub_TL_start Well, not quite, but we're at 83 MFlops now. Regards, Achim Gratz. --+<[ It's the small pleasures that make life so miserable. ]>+-- WWW: http://www.inf.tu-dresden.de/~ag7/{english/} E-Mail: gratz@ite.inf.tu-dresden.de Phone: +49 351 463 - 8325