Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to resolve: error LNK2001: unresolved external symbol "public: static void * Pin
Davie2124014-Feb-19 5:02
Davie2124014-Feb-19 5:02 
QuestionOverriding problem Pin
NoviceEx10-Feb-19 7:02
NoviceEx10-Feb-19 7:02 
AnswerRe: Overriding problem Pin
Richard Andrew x6410-Feb-19 12:34
professionalRichard Andrew x6410-Feb-19 12:34 
GeneralRe: Overriding problem Pin
NoviceEx10-Feb-19 19:47
NoviceEx10-Feb-19 19:47 
AnswerRe: Overriding problem Pin
CPallini10-Feb-19 21:07
mveCPallini10-Feb-19 21:07 
GeneralRe: Overriding problem Pin
Davie2124014-Feb-19 5:03
Davie2124014-Feb-19 5:03 
QuestionUsing OpenMP - #of CPU or # of threads ? Pin
Vaclav_8-Feb-19 10:19
Vaclav_8-Feb-19 10:19 
AnswerRe: Using OpenMP - #of CPU or # of threads ? Pin
leon de boer8-Feb-19 21:35
leon de boer8-Feb-19 21:35 
Initially for the application will set the number of threads = nofCores, as 1 thread per core will get you the best performance.

From there your performance goes down for both other options

Sometime you don't want all the cores doing stuff so you control it and you will run across things like
#pragma omp parallel num_threads(3)
{
     ... some code for 3 cores
}

Then you get the other option multiple threads per core ... that involves context switching so again performance loss.

So it starts that way on initial easy samples but it won't stay that way for very long Smile | :)
In vino veritas


modified 9-Feb-19 4:08am.

AnswerRe: Using OpenMP - #of CPU or # of threads ? Pin
Richard MacCutchan8-Feb-19 22:36
mveRichard MacCutchan8-Feb-19 22:36 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Vaclav_9-Feb-19 4:14
Vaclav_9-Feb-19 4:14 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Richard MacCutchan9-Feb-19 6:40
mveRichard MacCutchan9-Feb-19 6:40 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Vaclav_9-Feb-19 7:17
Vaclav_9-Feb-19 7:17 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
k50549-Feb-19 8:20
mvek50549-Feb-19 8:20 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
k50549-Feb-19 8:38
mvek50549-Feb-19 8:38 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Vaclav_9-Feb-19 13:11
Vaclav_9-Feb-19 13:11 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
leon de boer9-Feb-19 16:52
leon de boer9-Feb-19 16:52 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Vaclav_10-Feb-19 4:34
Vaclav_10-Feb-19 4:34 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Richard MacCutchan10-Feb-19 6:42
mveRichard MacCutchan10-Feb-19 6:42 
GeneralRe: Using OpenMP - #of CPU or # of threads ? Pin
Richard MacCutchan9-Feb-19 22:42
mveRichard MacCutchan9-Feb-19 22:42 
QuestionC coding to evaluate an arithmetic expression Pin
Member 119317847-Feb-19 12:08
Member 119317847-Feb-19 12:08 
AnswerRe: C coding to evaluate an arithmetic expression Pin
jeron17-Feb-19 14:16
jeron17-Feb-19 14:16 
AnswerRe: C coding to evaluate an arithmetic expression Pin
leon de boer7-Feb-19 17:52
leon de boer7-Feb-19 17:52 
AnswerRe: C coding to evaluate an arithmetic expression Pin
CPallini7-Feb-19 23:21
mveCPallini7-Feb-19 23:21 
RantWhy "make"? Pin
Vaclav_7-Feb-19 5:28
Vaclav_7-Feb-19 5:28 
GeneralRe: Why "make"? Pin
Richard MacCutchan7-Feb-19 6:00
mveRichard MacCutchan7-Feb-19 6:00 

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.