* Woeful Fortran execution timing on Alpha OSF1.3
@ 1994-01-20 5:07 Bill Alford
1994-01-31 23:26 ` Bill Alford
0 siblings, 1 reply; 2+ messages in thread
From: Bill Alford @ 1994-01-20 5:07 UTC (permalink / raw)
The following small Fortran program executes woefully slow on a DEC Alpha
OSF1.3 with DEC Fortran compiler V3.3-342:
program ex
implicit none
real*8 fi,ans /0.0/
integer i
do i=1,100000
fi=float(i)
ans=ans+((0.5**fi)/(fi**1.5))
enddo
write (6,*) ans
stop
end
Running under OSF1.3 is about 4 times slower than on a DEC Station 5000/150
with Ultrix V4.3. I would have expected the opposite to be the case based
on past benchmarks. Exactly the same thing happens when the equivalent C
code is used, making me suspect that the coding for exponentiation in the
C library is woefully slow. Has anybody else noticed this and more
specifically does DEC have a fix for this?
===========================================================================
| Bill Alford, | Email: Bill.Alford@anu.edu.au |
| School Computer Unit, | or bill@rsphys.anu.edu.au |
| Research School of Physical Sciences | Tel: 61 6 249 2143 |
| and Engineering, | Fax: 61 6 249 1884 |
| Australian National University, | N ,-_|\ |
| Canberra City, ACT 0200 | W + E / OZ \ |
| Australia | S \_,-._*<-- Canberra |
| | v [35S, 149E] |
| O, what a journey of Discovery we are on ... |
===========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Woeful Fortran execution timing on Alpha OSF1.3
1994-01-20 5:07 Woeful Fortran execution timing on Alpha OSF1.3 Bill Alford
@ 1994-01-31 23:26 ` Bill Alford
0 siblings, 0 replies; 2+ messages in thread
From: Bill Alford @ 1994-01-31 23:26 UTC (permalink / raw)
Following on from my initial posting on this, if you use the -non_shared
compiler switch, then execution time of the small Fortran coding example
comes down to about the same as on a DEC Station 5000/150 with Ultrix V4.3,
at the expense of a drastically increased executable size. You can get the
small Fortran coding example to increase in speed a little by recasting the
exponentiations as exp(log(x)*y) instead of x**y, but you shouldn't have to
do any of this. Clearly there is a need for software improvement here by DEC.
===========================================================================
| Bill Alford, | Email: Bill.Alford@anu.edu.au |
| School Computer Unit, | or bill@rsphys.anu.edu.au |
| Research School of Physical Sciences | Tel: 61 6 249 2143 |
| and Engineering, | Fax: 61 6 249 1884 |
| Australian National University, | N ,-_|\ |
| Canberra City, ACT 0200 | W + E / OZ \ |
| Australia | S \_,-._*<-- Canberra |
| | v [35S, 149E] |
| O, what a journey of Discovery we are on ... |
===========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-01-31 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-20 5:07 Woeful Fortran execution timing on Alpha OSF1.3 Bill Alford
1994-01-31 23:26 ` Bill Alford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox