From: "Anthony P. Leclerc" <leclerc@tony.cs.cofc.edu>
Subject: (System) cost of using alpha rounding mode instructions
Date: 1995/09/06 [thread overview]
Message-ID: <Pine.OSF.3.90.950906163137.12846A-100000@tony.cs.cofc.edu> (raw)
I am using the rounding mode instructions as part of the Alpha
architecture (e.g. addtm, addtd, multm, multd, ....).
At first (and maybe still) I thought DEC was clever in introducing these
seperate instructions in order to do directed rounding, rather than call
a seperate instruction to set a control register before ordinary "add",
"mult", etc. instructions. However, now I'm wondering what the cost is.
All architectures I have worked on previously used the seperate
instruction (to change a value in the rounding control register) method
for permitting IEEE recommend (or is it required now) directed rounding.
The timings for the interval arithmetic software I was using seemed
reasonable (on an Ultrix box, for instance).
On an Alpha, I'm finding out that a simple interval arithmetic program which
runs in 20 seconds on a DEC 5000/240 takes over 3 minutes to run on a DEC
3000/400 with 64 M. I have subsequently done profiling to try to get a
handle on this problem.
The profiler tells me that the alpha program only took 10 seconds. Using
"time" I verfied that, sure enough, the user time was about 10 seconds,
but the system time was around 3 minutes!
Basically I'm wondering what I may be doing wrong. The inline assembly
seems pretty straight forward, and I even seperated out the assembly
instructions into a seperate file, rather than inlining. It seems from a
profile, that the timings are reasonable. However, the enourmous system
time (about 25 times the cost of the user computation time) is
distressing. Any ideas?
Please send me email about this. I don't have convenient or regular
access to news.
|"""""|
( @ @ )
+----------------------.ooo0----(_)----0ooo.---------------------+
| |
| *** http://www.cs.cofc.edu/per/fac/leclerc/WWW/apl.html *** |
| |
| .ooo0 |
| ( ) 0ooo. |
+---------------------------\ (----( )-------------------------+
\_) ) /
(_/
next reply other threads:[~1995-09-06 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-06 4:00 Anthony P. Leclerc [this message]
1995-09-08 4:00 ` (System) cost of using alpha rounding mode instructions Steven Hobbs
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