From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,c6ee262d6492cc0e X-Google-Attributes: gid111c93,public From: Xavier Gallez Subject: Re: Using DEC compilers on a Linux Alpha cluster Date: 1998/07/29 Message-ID: <35BECDE5.559DE104@mema.ucl.ac.be>#1/1 X-Deja-AN: 375919952 Content-Transfer-Encoding: 7bit References: <35BDDDA7.F1EB5084@mema.ucl.ac.be> <6pkpqs$92d@news1.newsguy.com> Content-Type: text/plain; charset=us-ascii Organization: Universite Catholique de Louvain, Louvain-la-Neuve, Belgium Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Greg Lindahl wrote: > Xavier Gallez writes: > > > http://www.meca.ucl.ac.be/memawww/deepflow/ > > In your single-node benchmarks, I assume that your FFTW code does a > lot of math library calls, so much of gcc's performance problem at > small problem sizes is due to the math library. At large problem sizes > you are bound by main memory bandwidth, which is why gcc and Dec cc > are about equal. > > Does your NumLab code also do a lot of math library calls? > > -- g This is actually a very good point. Indeed, gcc and Dec cc perform nearly equally for large problems in the FFTW test, probably because of memory bandwidth limitations. In the NumLab test however, it is only when the size of the data gets large that DEC cc becomes realy more performant than gcc. Indeed, the NumLab code generated by DEC runs 3.5 faster than the one generated by gcc, while it is only twice as fast for smaller problems. The memory bandwidth does not seem to be the bottleneck anymore. My feeling is that DEC cc compiler programs I/O operations between the L3 cache and the main memory in a very efficient way, while gcc does not. Concerning the type of arithmetic operations, FFTW uses intensively tabulated values in order to limit math library calls. As I understand it, there are only a few calls to sin and cos at each iteration, many less than explicit additions and multiplications. It would be a good idea to check the FFTW homepage for further information (http://theory.lcs.mit.edu/~fftw). In NumLab, the main operations are explicit additions and multiplications, with few calls to sqrt and log (1 out of 40 operations in the most computationaly intensive "micro" part of the simulation). Thanks for your comments. Xavier