Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Achim Gratz <gratz@ite.inf.tu-dresden.de>
Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
Date: 1997/03/15	[thread overview]
Message-ID: <c7mj9jelx.fsf@ite127.inf.tu-dresden.de> (raw)
In-Reply-To: 5g120v$312@news-rocq.inria.fr


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



  parent reply	other threads:[~1997-03-15  5:00 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-10  5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
1997-03-10  5:00 ` henley
1997-03-11  5:00   ` dick'circle-a'buckosoft'dot'com
1997-03-11  5:00   ` Peter Mayne
1997-03-10  5:00     ` H.W. Stockman
1997-03-12  5:00       ` Peter Mayne
1997-03-10  5:00 ` henley
1997-03-11  5:00   ` henley
1997-03-12  5:00     ` henley
1997-03-12  5:00     ` Chris Ruemmler
1997-03-13  5:00       ` Paul DeMone
1997-03-14  5:00         ` Chris Ruemmler
1997-03-14  5:00           ` Paul DeMone
1997-03-14  5:00       ` Peter Mayne
1997-03-14  5:00         ` William J. Burlingame
1997-03-14  5:00         ` Chris Ruemmler
1997-03-14  5:00           ` H.W. Stockman
1997-03-14  5:00     ` Charles Hedrick
1997-03-10  5:00 ` H.W. Stockman
1997-03-13  5:00 ` Geoffrey Welsh
1997-03-15  5:00 ` henley
     [not found]   ` <332b221b.1501158@news.jussieu.fr>
1997-03-16  5:00     ` henley
1997-03-15  5:00 ` Achim Gratz [this message]
1997-03-16  5:00 ` henley
1997-03-16  5:00 ` henley
1997-03-17  5:00 ` Peter Mayne
1997-03-17  5:00 ` Achim Gratz
1997-03-17  5:00 ` Paul DeMone
1997-03-17  5:00 ` henley
  -- strict thread matches above, loose matches on Subject: below --
1997-03-12  5:00 Robert Harley
1997-03-12  5:00 ` henley
1997-03-13  5:00   ` Loesche
1997-03-15  5:00     ` Martin T. Griffin
1997-03-16  5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers Paul Repacholi (prep)
1997-03-16  5:00   ` henley
1997-03-17  5:00     ` Ben Myers
1997-03-06  5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers henley
1997-03-09  5:00 ` Zlatko Calusic
1997-03-09  5:00   ` henley
1997-03-11  5:00     ` Mike Greaves
1997-03-26  5:00       ` James Mansion
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox