Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMultiple excel server problem Pin
trioum5-Aug-10 21:12
trioum5-Aug-10 21:12 
AnswerRe: Multiple excel server problem Pin
Cool_Dev5-Aug-10 22:48
Cool_Dev5-Aug-10 22:48 
GeneralRe: Multiple excel server problem Pin
trioum5-Aug-10 23:54
trioum5-Aug-10 23:54 
GeneralRe: Multiple excel server problem Pin
Cool_Dev6-Aug-10 1:08
Cool_Dev6-Aug-10 1:08 
GeneralRe: Multiple excel server problem Pin
trioum6-Aug-10 19:12
trioum6-Aug-10 19:12 
GeneralRe: Multiple excel server problem Pin
Cool_Dev8-Aug-10 0:22
Cool_Dev8-Aug-10 0:22 
Questionomp parallel for reduction (+: sum) computation discrepancies? Pin
Chesnokov Yuriy5-Aug-10 20:22
professionalChesnokov Yuriy5-Aug-10 20:22 
AnswerRe: omp parallel for reduction (+: sum) computation discrepancies? Pin
Peter_in_27805-Aug-10 21:08
professionalPeter_in_27805-Aug-10 21:08 
Looks like you're using float (not double) and suffering from loss of precision adding big and small numbers.
Simple example:
float sum1 = 0.0, sum2 = 1.0;
for (i = 0; i < 10000000; i++)
  {
  sum1 += 1e-8;
  sum2 += 1e-8;
  }
sum1 += 1.0;
// here, there's no way sum1 == sum2

In a quick test, I got sum1 = 1.092107... and sum2 = 1.0
However, replacing float with double, I get sum1 = 1.09999999998803 and sum2 = 1.09999999939225.
You can get almost any answer you want in float by choosing the order of evaluation. Poke tongue | ;-P
Software rusts. Simon Stephenson, ca 1994.

GeneralRe: omp parallel for reduction (+: sum) computation discrepancies? Pin
Chesnokov Yuriy5-Aug-10 21:59
professionalChesnokov Yuriy5-Aug-10 21:59 
QuestionHow to change audio output/input devices? Pin
odyaho5-Aug-10 17:29
odyaho5-Aug-10 17:29 
AnswerRe: How to change audio output/input devices? Pin
odyaho6-Aug-10 0:34
odyaho6-Aug-10 0:34 
QuestionIAccessible and tools like AccExplorer / Inspect Objects Pin
Member 38216205-Aug-10 14:53
Member 38216205-Aug-10 14:53 
QuestionWin32 Scheduled jobs Pin
Jach Mullan5-Aug-10 11:52
Jach Mullan5-Aug-10 11:52 
AnswerRe: Win32 Scheduled jobs Pin
Yusuf5-Aug-10 12:15
Yusuf5-Aug-10 12:15 
Questionwinsock connect() and how to reduce intial timeout value from, 3 seconds to 1 second or less Pin
Alan Kurlansky5-Aug-10 10:29
Alan Kurlansky5-Aug-10 10:29 
AnswerRe: winsock connect() and how to reduce intial timeout value from, 3 seconds to 1 second or less Pin
Moak5-Aug-10 12:50
Moak5-Aug-10 12:50 
Questioninput message injection on windows logon desktop Pin
linuwin5-Aug-10 3:47
linuwin5-Aug-10 3:47 
QuestionOpenMP concurrency issues Pin
Chesnokov Yuriy5-Aug-10 0:53
professionalChesnokov Yuriy5-Aug-10 0:53 
AnswerRe: OpenMP concurrency issues Pin
Aescleal5-Aug-10 2:21
Aescleal5-Aug-10 2:21 
QuestionOpenMP performance inconsistency on i7 Pin
Chesnokov Yuriy5-Aug-10 0:48
professionalChesnokov Yuriy5-Aug-10 0:48 
AnswerRe: OpenMP performance inconsistency on i7 Pin
Sauro Viti5-Aug-10 0:58
professionalSauro Viti5-Aug-10 0:58 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Aescleal5-Aug-10 2:14
Aescleal5-Aug-10 2:14 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Sauro Viti5-Aug-10 2:34
professionalSauro Viti5-Aug-10 2:34 
GeneralRe: OpenMP performance inconsistency on i7 Pin
harold aptroot5-Aug-10 13:54
harold aptroot5-Aug-10 13:54 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Aescleal6-Aug-10 6:29
Aescleal6-Aug-10 6:29 

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.