* Using DEC compilers on a Linux Alpha cluster
@ 1998-07-28 4:00 Xavier Gallez
1998-07-28 4:00 ` Greg Lindahl
1998-07-29 4:00 ` Lev Gelb
0 siblings, 2 replies; 17+ messages in thread
From: Xavier Gallez @ 1998-07-28 4:00 UTC (permalink / raw)
Hello everyone,
We have assembled DeepFlow, an Alpha cluster-based parallel
computer. It is a heterogeneous cluster made of 16 Linux 533MHz Alpha
machines, an one DEC UNIX 433MHz Alpha workstation. By doing so, we can
take advantage of DEC's C compiler's high performance while running the
codes on Linux systems. Interested people can visit DeepFlow's homepage
at:
http://www.meca.ucl.ac.be/memawww/deepflow/
Does anyone know of another newsgroup I should post this on so that
interested people can be reached ?
Thanks in advance,
Xavier.
=============================================================
Xavier GALLEZ
Centre for Systems Engineering and Applied Mechanics (CESAME)
Universite Catholique de Louvain
Batiment Euler, Av. Georges Lemaitre, 4-6
B-1348 Louvain-la-Neuve, BELGIUM
Tel: + 32 - 10 - 47 2365
Fax: + 32 - 10 - 47 2180
E-mail: gallez@mema.ucl.ac.be
=============================================================
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-28 4:00 Using DEC compilers on a Linux Alpha cluster Xavier Gallez
@ 1998-07-28 4:00 ` Greg Lindahl
1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Lev Gelb
1 sibling, 1 reply; 17+ messages in thread
From: Greg Lindahl @ 1998-07-28 4:00 UTC (permalink / raw)
Xavier Gallez <gallez@mema.ucl.ac.be> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-28 4:00 ` Greg Lindahl
@ 1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Joachim Wesner
` (2 more replies)
0 siblings, 3 replies; 17+ messages in thread
From: Xavier Gallez @ 1998-07-29 4:00 UTC (permalink / raw)
Greg Lindahl wrote:
> Xavier Gallez <gallez@mema.ucl.ac.be> 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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Xavier Gallez
@ 1998-07-29 4:00 ` Joachim Wesner
1998-07-29 4:00 ` Greg Lindahl
1998-07-30 4:00 ` Steven G. Johnson
2 siblings, 0 replies; 17+ messages in thread
From: Joachim Wesner @ 1998-07-29 4:00 UTC (permalink / raw)
Xavier Gallez wrote:
>
> Greg Lindahl wrote:
> > 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 si
> 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).
Not quite, to my knowledge. Any modern, non brain dead fp FFT
implementation does the heavy calculation of sin and cos values by
a recurrence relation, instead of using function routines. This is the
idea of treating cos and sin as the components of a vector and to
caclculate the "next" cos/sin value by applying a rotation matrix, i.e.
only few adds and mults. You need the function routines, however, in the
OUTER loops to calculate the coefficients of the rot matrix.
YES, FFTW uses tables to store the optimum decomposition of the
recursive FFT problem on the machine in question, that's what they call
"adaptive" and that's what you generate with FFTW_MEASURE and what's
stored as "wisdom".
Joachim
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Joachim Wesner
@ 1998-07-29 4:00 ` Greg Lindahl
1998-08-03 4:00 ` Steve Peltz
1998-07-30 4:00 ` Steven G. Johnson
2 siblings, 1 reply; 17+ messages in thread
From: Greg Lindahl @ 1998-07-29 4:00 UTC (permalink / raw)
Xavier Gallez <gallez@mema.ucl.ac.be> writes:
> 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).
In that case, the slow default math libraries are probably hurting you
much more than bad code generation by gcc-egcs. I believe that the
libffm sqrt and log functions are now finished, so maybe you could
test with them? It would also be nice if you could show a short code
snippit of a computational kernel along with the assembly code that
gcc-egcs produces.
-- g
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Greg Lindahl
@ 1998-08-03 4:00 ` Steve Peltz
0 siblings, 0 replies; 17+ messages in thread
From: Steve Peltz @ 1998-08-03 4:00 UTC (permalink / raw)
In article <6pn7jh$ftr@news1.newsguy.com>,
Greg Lindahl <lindahl@pbm.com> wrote:
>snippit of a computational kernel along with the assembly code that
>gcc-egcs produces.
Remember that when comparing assembly output between gcc and DEC cc,
the DEC assembler does some pretty good optimization itself (re-ordering
operations to scatter memory references, attempt to keep pipelines
full, etc.). It might be worth it to take gcc assembler output and
run it through DEC's assembler instead of gas, and see if that makes
a difference.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Joachim Wesner
1998-07-29 4:00 ` Greg Lindahl
@ 1998-07-30 4:00 ` Steven G. Johnson
1998-07-30 4:00 ` Greg Lindahl
2 siblings, 1 reply; 17+ messages in thread
From: Steven G. Johnson @ 1998-07-30 4:00 UTC (permalink / raw)
Xavier Gallez <gallez@mema.ucl.ac.be> wrote:
>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
I thought I'd chime in here, since I am one of the authors of FFTW.
Yes, FFTW uses precomputed trig. values, so there are actually no math
library calls during the execution of the FFT (which is what you are
benchmarking).
What you are seeing in your benchmarks of FFTW, to the best of my
understanding, is this:
For small transforms, the computation time is dominated by floating-point
operations (adds & mults), which primarily take place in long blocks (~1000
lines) of heavily optimized code (generated by a special program). This
code is structured in such a way as to give the compiler maximum
opportunity to optimize register usage & schedule instructions, and the
quality of the compiler makes a big difference. Unfortunately, gcc is
known to be poor at these things--it doesn't really "know" enough about the
pipelines of modern superscalar CPUs.
For large transforms, time is dominated by memory I/O. FFT algorithms are
harder on the cache than most other types of numerical computation, and so
are especially dependent upon how much memory locality we can squeeze out
of them. The compiler has relatively little influence on memory access
patterns, and thus you don't see as much difference here between DEC cc and
gcc.
Cordially,
Steven G. Johnson
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-30 4:00 ` Steven G. Johnson
@ 1998-07-30 4:00 ` Greg Lindahl
0 siblings, 0 replies; 17+ messages in thread
From: Greg Lindahl @ 1998-07-30 4:00 UTC (permalink / raw)
stevenj@alum.mit.edu (Steven G. Johnson) writes:
> For small transforms, the computation time is dominated by floating-point
> operations (adds & mults), which primarily take place in long blocks (~1000
> lines) of heavily optimized code (generated by a special program). This
> code is structured in such a way as to give the compiler maximum
> opportunity to optimize register usage & schedule instructions, and the
> quality of the compiler makes a big difference. Unfortunately, gcc is
> known to be poor at these things--it doesn't really "know" enough about the
> pipelines of modern superscalar CPUs.
Ah. This is something which the egcs people are attacking with their
haifa scheduler -- perhaps we could get someone to look into the
quality of the haifa schedule output for this basic block. It sounds
like an excellent and difficult test case.
-- g
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-28 4:00 Using DEC compilers on a Linux Alpha cluster Xavier Gallez
1998-07-28 4:00 ` Greg Lindahl
@ 1998-07-29 4:00 ` Lev Gelb
1998-07-29 4:00 ` Xavier Gallez
1 sibling, 1 reply; 17+ messages in thread
From: Lev Gelb @ 1998-07-29 4:00 UTC (permalink / raw)
On Tue, 28 Jul 1998, Xavier Gallez wrote:
> We have assembled DeepFlow, an Alpha cluster-based parallel
> computer. It is a heterogeneous cluster made of 16 Linux 533MHz Alpha
> machines, an one DEC UNIX 433MHz Alpha workstation. By doing so, we can
> take advantage of DEC's C compiler's high performance while running the
> codes on Linux systems. Interested people can visit DeepFlow's homepage
> at:
>
Surely, doing this is in DEC software license violation, unless
they purchased base UNIX licenses for each Linux/Alpha machines -
I recall that this was debated in this newsgroup about a year ago.
(and if they had done that, is there any reason that Linux would be better
for this kind of project?)
Or has the official word on using DEC-compiled non_shared executables
on Linux boxes changed?
Best regards,
Lev
-----------------------------------------------------------------------------
Lev Gelb gelb@unity.ncsu.edu
North Carolina State University ---- Department of Chemical Engineering
113 Riddick Labs, Raleigh, NC 27695-7905 - ph:(919)513-2051 fax:(919)515-3465
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Lev Gelb
@ 1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Lev Gelb
0 siblings, 1 reply; 17+ messages in thread
From: Xavier Gallez @ 1998-07-29 4:00 UTC (permalink / raw)
Lev Gelb wrote:
> Surely, doing this is in DEC software license violation, unless
> they purchased base UNIX licenses for each Linux/Alpha machines -
> I recall that this was debated in this newsgroup about a year ago.
Everything concerning the DeepFlow project was handled in full agreement with the
DEC software licence for our University.
Xavier Gallez.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Xavier Gallez
@ 1998-07-29 4:00 ` Lev Gelb
1998-07-29 4:00 ` Joachim Wesner
0 siblings, 1 reply; 17+ messages in thread
From: Lev Gelb @ 1998-07-29 4:00 UTC (permalink / raw)
>
> > Surely, doing this is in DEC software license violation, unless
> > they purchased base UNIX licenses for each Linux/Alpha machines -
> > I recall that this was debated in this newsgroup about a year ago.
>
> Everything concerning the DeepFlow project was handled in full agreement with the
> DEC software licence for our University.
>
> Xavier Gallez.
>
Ah - your University must have a much better software agreement
with DEC than my University; we only get the compilers and app.
software, but must still buy the DEC OSF-BASE license for each
machine running the code. Else, we would have tried to set up
a linux system; as it is, we've got 11 Alpha/DUNIX in a similar
config. to yours.
Good luck,
Lev
-----------------------------------------------------------------------------
Lev Gelb gelb@unity.ncsu.edu
North Carolina State University ---- Department of Chemical Engineering
113 Riddick Labs, Raleigh, NC 27695-7905 - ph:(919)513-2051 fax:(919)515-3465
-----------------------------------------------------------------------------
*--* ** - **** -*-- --*- **- --- - * --* --- * *** **** * *-* *
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Lev Gelb
@ 1998-07-29 4:00 ` Joachim Wesner
1998-07-30 4:00 ` Robert Harley
1998-08-05 4:00 ` David Cherkus
0 siblings, 2 replies; 17+ messages in thread
From: Joachim Wesner @ 1998-07-29 4:00 UTC (permalink / raw)
Lev Gelb wrote:
>
> > > Surely, doing this is in DEC software license violation, unless
> > > they purchased base UNIX licenses for each Linux/Alpha machines -
> > > I recall that this was debated in this newsgroup about a year ago.
> >
> > Everything concerning the DeepFlow project was handled in full agreement with the
> > DEC software licence for our University.
> >
> > Xavier Gallez.
> >
>
> Ah - your University must have a much better software agreement
> with DEC than my University; we only get the compilers and app.
> software, but must still buy the DEC OSF-BASE license for each
> machine running the code. Else, we would have tried to set up
> a linux system; as it is, we've got 11 Alpha/DUNIX in a similar
> config. to yours.
All this makes me wonder if the guys that did the raytracing for
"Titanic" actually heavily VIOLATED DEC licenses (probably without being
aware of ?) ??
If I recall correctly (?), they wrote they did go for Linux on the
individual machines just BECAUSE they only needed to run the application
stuff there and they did not want buying indivual hefty $$$ DU licenses
for any of those.
Joachim
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Joachim Wesner
@ 1998-07-30 4:00 ` Robert Harley
1998-07-30 4:00 ` Joachim Wesner
1998-08-05 4:00 ` David Cherkus
1 sibling, 1 reply; 17+ messages in thread
From: Robert Harley @ 1998-07-30 4:00 UTC (permalink / raw)
Guys,
I think the important point is how the programs are linked.
Stuff that is dynamically linked on Digital Unix requires the shared
object libraries which can only be installed on machines with a
D.U. license.
But stuff that is statically linked needs no libraries and no license.
It will "just run" on Linux unless it uses some particularly esoteric
D.U.-isms.
E.g., Netscape for D.U. is dynamically linked. No go.
Whereas my own C programs compiled with "-non_shared" work just fine.
Rob.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-30 4:00 ` Robert Harley
@ 1998-07-30 4:00 ` Joachim Wesner
1998-07-31 4:00 ` Xiaoguang Zhang
0 siblings, 1 reply; 17+ messages in thread
From: Joachim Wesner @ 1998-07-30 4:00 UTC (permalink / raw)
Robert Harley wrote:
>
> Guys,
>
> I think the important point is how the programs are linked.
>
> Stuff that is dynamically linked on Digital Unix requires the shared
> object libraries which can only be installed on machines with a
> D.U. license.
>
> But stuff that is statically linked needs no libraries and no license.
> It will "just run" on Linux unless it uses some particularly esoteric
> D.U.-isms.
>
> E.g., Netscape for D.U. is dynamically linked. No go.
> Whereas my own C programs compiled with "-non_shared" work just fine.
>
> Rob.
I do not get your point. There is clearly a difference between
technically possible and allowed by some license. Usually, it's just an
"inverse" relation. For stuff that won't work without additional
software (i.e.libs), there likely will be no license
applicable/necessary, simply just because it won't work if alos copy the
missing stuff that comes with it's own license.
Instead for stuff that comes with the libraries included, i.e.
statically linked stuff, and works as is, DEC very likely will like you
to obey licence terms - I fear.
Joachim
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-30 4:00 ` Joachim Wesner
@ 1998-07-31 4:00 ` Xiaoguang Zhang
1998-07-31 4:00 ` Joachim Wesner
0 siblings, 1 reply; 17+ messages in thread
From: Xiaoguang Zhang @ 1998-07-31 4:00 UTC (permalink / raw)
: I do not get your point. There is clearly a difference between
: technically possible and allowed by some license. Usually, it's just an
: "inverse" relation. For stuff that won't work without additional
: software (i.e.libs), there likely will be no license
: applicable/necessary, simply just because it won't work if alos copy the
: missing stuff that comes with it's own license.
: Instead for stuff that comes with the libraries included, i.e.
: statically linked stuff, and works as is, DEC very likely will like you
: to obey licence terms - I fear.
: Joachim
This doesn't make sense. Suppose that someone uses Digital Unix to
develop a software for an embedded system. Surely you are not suggesting
that one needs a DU license for each embedded system that this software
runs on.
Xiaoguang Zhang
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-31 4:00 ` Xiaoguang Zhang
@ 1998-07-31 4:00 ` Joachim Wesner
0 siblings, 0 replies; 17+ messages in thread
From: Joachim Wesner @ 1998-07-31 4:00 UTC (permalink / raw)
Xiaoguang Zhang wrote:
> This doesn't make sense. Suppose that someone uses Digital Unix to
> develop a software for an embedded system. Surely you are not suggesting
> that one needs a DU license for each embedded system that this software
> runs on.
> Xiaoguang Zhang
Why not ??? There are even SEVERAL Intel compilers resp. special
function libraries I know of where you need to have a *runtime* license
for *every* system you will run the resulting binary on, clearly no
matter if you link it dynamically or statically.
Regarding DEC DU I fear it is also so from what I heard here, but I
don't personally use it and don't have the license text available.
If I remember correctly, somebody also wrote that the "trick" of trying
to acquire an old DEC system with a valid license and tranfer it to your
new faster (Linux) box won't work either (legally).
Somebody who uses DU should be able to tell exact details.
BTW, how do you use Linux/DU on an *embedded* system ??? There is the
ELKS project (Embedded Linux Kernel Subset), but this is still far from
anything useful, and also there, what they did lately, runs in RAM and
from a harddisk, still not at all from ROM. There were even many
discussions on the mailing list if probably the E from embedded should
be dropped therefor.
Sincerely
Joachim
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Using DEC compilers on a Linux Alpha cluster
1998-07-29 4:00 ` Joachim Wesner
1998-07-30 4:00 ` Robert Harley
@ 1998-08-05 4:00 ` David Cherkus
1 sibling, 0 replies; 17+ messages in thread
From: David Cherkus @ 1998-08-05 4:00 UTC (permalink / raw)
I think you recall incorrectly.
They compiled their apps using Linux and ran them on Linux.
Joachim Wesner wrote:
>
> All this makes me wonder if the guys that did the raytracing for
> "Titanic" actually heavily VIOLATED DEC licenses (probably without being
> aware of ?) ??
>
> If I recall correctly (?), they wrote they did go for Linux on the
> individual machines just BECAUSE they only needed to run the application
> stuff there and they did not want buying indivual hefty $$$ DU licenses
> for any of those.
>
> Joachim
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~1998-08-05 4:00 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-28 4:00 Using DEC compilers on a Linux Alpha cluster Xavier Gallez
1998-07-28 4:00 ` Greg Lindahl
1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Joachim Wesner
1998-07-29 4:00 ` Greg Lindahl
1998-08-03 4:00 ` Steve Peltz
1998-07-30 4:00 ` Steven G. Johnson
1998-07-30 4:00 ` Greg Lindahl
1998-07-29 4:00 ` Lev Gelb
1998-07-29 4:00 ` Xavier Gallez
1998-07-29 4:00 ` Lev Gelb
1998-07-29 4:00 ` Joachim Wesner
1998-07-30 4:00 ` Robert Harley
1998-07-30 4:00 ` Joachim Wesner
1998-07-31 4:00 ` Xiaoguang Zhang
1998-07-31 4:00 ` Joachim Wesner
1998-08-05 4:00 ` David Cherkus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox