Click here to Skip to main content
15,910,277 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer25-Jan-17 1:09
professionalDaniel Pfeffer25-Jan-17 1:09 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Jochen Arndt25-Jan-17 1:29
professionalJochen Arndt25-Jan-17 1:29 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer25-Jan-17 1:59
professionalDaniel Pfeffer25-Jan-17 1:59 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Jochen Arndt25-Jan-17 2:16
professionalJochen Arndt25-Jan-17 2:16 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
Daniel Pfeffer25-Jan-17 2:50
professionalDaniel Pfeffer25-Jan-17 2:50 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
patbob25-Jan-17 6:48
patbob25-Jan-17 6:48 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
englebart26-Jan-17 2:27
professionalenglebart26-Jan-17 2:27 
GeneralRe: Distribution of floating-point operations in scientific computing Pin
kalberts26-Jan-17 3:31
kalberts26-Jan-17 3:31 
Even "real" numbers can turn out to be misleading, if the background for the figures are not completely understood. Such as: 30+ years ago I was working on a computer which had an extreme FPU (it filled about half a square meter of circuit board). It was so fast that for integer multiply and divide, the 32 bit integer value was internally converted to a 64 bit floating point value, the operation performed by the FPU, and the result converted back to integer format. So a count of FP multiply/divide operations would count integer operations as well.

Another case: At my university, the IT people running the huge mainframe (this was many years ago) attached a counter to the Divide by Zero flag, and discovered that every single day, literally tens of millions of divide by zero was performed. For a few days, there was a big uproar in the IT department over the "low code quality" causing so many exceptions - until one of the mechanical engineering guys noticed the worries and explained that this was quite normal and expected: Some of the standard matrix operations would generate partial results where some number indeed was divided by zero, but the algorithm did not make use of those partial results. So there was no "real" need to perform those divisions at all; it was just a consequence of using a standard matrix library operating on all elements rather than those actually used.

If you didn't know, you might have spent lots of time speeding up the processing of the Divide by Zero exception, which might have been a waste.

When you ask for other people's use of a certain mechanism, you will not know the context from which these figures were drawn. If you collect data from two dozen independent sources, you might get an idea about the "typical" figures, but they might be completely off for one specific application domain.

To illustrate: This machine with the half sqare meter FPU were mostly used in engineering applications, where FP performance was at a premium. For business use, you could choose the BCD option. Business applications hardly do division at all, so there was no BCD divide hardware - it was implemented purely in microcode, and it was dead slow! But no customer complained over it: They never discovered, because they never used BCD divide.

For comparison: FP divide started with a table lookup for the two operands, giving the first 11 bits correct, followed by 1-clock-cycle iterations, each iteration doubling the number of correct result bits. Finally, 1 cycle was requred for normalizing the result value. So the total time for a 32 bit divide was four clock cyles, for a 64 bit divide, five clock cycles. They won a couple of design awards for that FPU in the early 1980s (and a number of prestigious engineering contracts, like with CERN and the F16 fighter project).
GeneralRe: Distribution of floating-point operations in scientific computing Pin
TNCaver26-Jan-17 5:05
TNCaver26-Jan-17 5:05 
GeneralI had a very wade morning :-( Pin
Kornfeld Eliyahu Peter24-Jan-17 20:56
professionalKornfeld Eliyahu Peter24-Jan-17 20:56 
GeneralTWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 PinPopular
Kornfeld Eliyahu Peter24-Jan-17 7:05
professionalKornfeld Eliyahu Peter24-Jan-17 7:05 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
dbrenth24-Jan-17 7:21
dbrenth24-Jan-17 7:21 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 7:26
professionalKornfeld Eliyahu Peter24-Jan-17 7:26 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
dbrenth24-Jan-17 7:37
dbrenth24-Jan-17 7:37 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 7:43
professionalKornfeld Eliyahu Peter24-Jan-17 7:43 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Member 1170549025-Jan-17 3:31
Member 1170549025-Jan-17 3:31 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Jochen Arndt24-Jan-17 7:23
professionalJochen Arndt24-Jan-17 7:23 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 7:29
professionalKornfeld Eliyahu Peter24-Jan-17 7:29 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Jochen Arndt24-Jan-17 7:46
professionalJochen Arndt24-Jan-17 7:46 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 7:49
professionalKornfeld Eliyahu Peter24-Jan-17 7:49 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Marc Clifton24-Jan-17 7:30
mvaMarc Clifton24-Jan-17 7:30 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 7:37
professionalKornfeld Eliyahu Peter24-Jan-17 7:37 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Member 1286378724-Jan-17 22:57
Member 1286378724-Jan-17 22:57 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Mark_Wallace24-Jan-17 7:36
Mark_Wallace24-Jan-17 7:36 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 7:38
professionalKornfeld Eliyahu Peter24-Jan-17 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.