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: 1164f8,3e10dbc776740ba1 X-Google-Attributes: gid1164f8,public X-Google-Thread: f57db,3e10dbc776740ba1 X-Google-Attributes: gidf57db,public X-Google-Thread: fb9cd,3e10dbc776740ba1 X-Google-Attributes: gidfb9cd,public From: henley Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers. Date: 1997/03/16 Message-ID: <332C7589.923@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 226029944 References: <5g120v$312@news-rocq.inria.fr> <3324357D.A1@tonys.ecology.umn.edu> <3325AE31.30F5@tonys.ecology.umn.edu> <5gd14o$oq1@geneva.rutgers.edu> <332AF12A.3F0@tonys.ecology.umn.edu> <332b221b.1501158@news.jussieu.fr> Organization: University of Minnesota Newsgroups: comp.benchmarks,comp.sys.intel,comp.sys.dec,comp.os.ms-windows.nt.misc Vadim Zeitlin wrote: > > On Sat, 15 Mar 1997 12:57:46 -0600, henley > wrote: > > >> 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? > > > >Your comments, of course, are interesting, but no need to display your > >ignorance. The minuses come from the fact that the matrices are > >SU3 matrices, and therefore complex. Do you understand what a complex > >matrix is? > > I think you're being a little too hard here... In fact, the code is > not _very_ readable and it does look like Fortran to me :-) Even if > complex matrices are not something I've never heard about it took me > some time to realize what was going on there. Yes, I know it is not readable.. in fact I have the words "ugly" and "messy" in my own description! Why does it look like Fortran? Try to write the routines using a complex struct, and see the performance drop down to zero... Even better, write it in C++ and see the performance REALLY drop. IT does not really matter how untidy the code is anyway... much real code is messy. The interesting thing is how different machines compare, don't you think? When it comes down to it, you would like a routine to run FAST. If this means that it does not look pretty... well then, that is unfortunate. I would love for someone to make it even uglier if it goes faster! There is yet another way to get the code to perform better on RISC CPUs, which nobody has mentioned yet... I'll try it soon. It will look even more like fortran, I'm afraid, but it'll certainly be faster. ;-) Actually, come to think of it, I do have a C++ version somewhere, which I used to play with the algorithm the first time round! I should find it.... It runs about 1/10th as fast. > > BTW, your code isn't multithreaded under UNIX, is it? I tried it on > a bi-PPro 200 under RedHat Linux 4.1 but the results were quite bad > (41 MFlops! what command line do you use with gcc?). I'll repost all > the results when I'll finish with running the code (I'm going to try > it at 5 different machines). No, you are right... the SMP is for NT only. I only wrote the NT stuff a week ago. I used very ugly #defines, because this is prototype code afterall.... but, if you would like to port it to other SMP platforms, that would be great. The thread stuff is not too complicated.... and mostly in SMP_NT.c. BTW, I got the results from an old PowerMac, a 66MHz one, which managed 26 Mflops/s. This is not bad at all.... Henley