Click here to Skip to main content
15,894,720 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Aescleal6-Aug-10 6:30
Aescleal6-Aug-10 6:30 
AnswerRe: OpenMP performance inconsistency on i7 Pin
Aescleal5-Aug-10 2:12
Aescleal5-Aug-10 2:12 
I wouldn't expect a linear scaling of performance with number of threads but I'd expect a bit better performance than that. When manually scheduling my own threads I can get about 4 times the performance on an i7 with 8 hardware execution units for the same sort of problem.

How does OpenMP interleave the memory accesses? There might be a lot of cache contention going on that's causing the slowdown. With my manually scheduled version it's running out of cache that slows mine down.

Looking at it N is fairly small. What happens when you use 10,000,000?

Cheers,

Ash

PS: Another reason you might not be getting as much speed up when you're running more cores is that the i5 and i7 throttle down when running more threads to keep the thing cool. Or as the advertising goes it overclocks up when running fewer threads and is able to keep its' temperature down. My results were with turbo boost (as the marketroids call it) disabled so that might be why my processor's response was a bit more linear.
GeneralRe: OpenMP performance inconsistency on i7 Pin
Chesnokov Yuriy5-Aug-10 3:02
professionalChesnokov Yuriy5-Aug-10 3:02 
GeneralRe: OpenMP performance inconsistency on i7 Pin
Aescleal5-Aug-10 3:11
Aescleal5-Aug-10 3:11 
Questionregisterhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 0:22
Jayapal Chandran5-Aug-10 0:22 
AnswerRe: registerhotkey function affects other applications when my app is still running Pin
Sauro Viti5-Aug-10 1:01
professionalSauro Viti5-Aug-10 1:01 
GeneralRe: registerhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 9:35
Jayapal Chandran5-Aug-10 9:35 
AnswerRe: registerhotkey function affects other applications when my app is still running Pin
Sauro Viti5-Aug-10 10:45
professionalSauro Viti5-Aug-10 10:45 
GeneralRe: registerhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 11:55
Jayapal Chandran5-Aug-10 11:55 
QuestionHow to get the Selected Item from CListControl Pin
Sakhalean4-Aug-10 20:30
Sakhalean4-Aug-10 20:30 
QuestionRe: How to get the Selected Item from CListControl Pin
CPallini4-Aug-10 21:04
mveCPallini4-Aug-10 21:04 
QuestionIs it ok to use uninitialized pointer? Pin
Sameerkumar Namdeo4-Aug-10 18:46
Sameerkumar Namdeo4-Aug-10 18:46 
AnswerRe: Is it ok to use uninitialized pointer? Pin
«_Superman_»4-Aug-10 19:15
professional«_Superman_»4-Aug-10 19:15 
GeneralRe: Is it ok to use uninitialized pointer? Pin
Rick York4-Aug-10 19:34
mveRick York4-Aug-10 19:34 
GeneralRe: Is it ok to use uninitialized pointer? [modified] Pin
Cedric Moonen4-Aug-10 20:48
Cedric Moonen4-Aug-10 20:48 
GeneralRe: Is it ok to use uninitialized pointer? Pin
CPallini4-Aug-10 20:57
mveCPallini4-Aug-10 20:57 
GeneralRe: Is it ok to use uninitialized pointer? Pin
Cedric Moonen4-Aug-10 21:07
Cedric Moonen4-Aug-10 21:07 
GeneralRe: Is it ok to use uninitialized pointer? Pin
CPallini4-Aug-10 21:15
mveCPallini4-Aug-10 21:15 
AnswerRe: Is it ok to use uninitialized pointer? [modified] Pin
bleedingfingers4-Aug-10 21:19
bleedingfingers4-Aug-10 21:19 

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.