Software Archive
Read-only legacy content
17061 Discussions

cores count:2, thread count:1 //problem activationg the 2 cores

4 Replies
Mikhail_Posypkin
Beginner
885 Views
If you use MS Visual Studio go to Project Properties->C/C++->Language->OpenMP Support. Enable it.
0 Kudos
Mikhail_Posypkin
Beginner
885 Views
Lots of shared variables in your code. You should make them private using private(...) options. The general rule is as follows: any variable that is stored in the code should be private unless it is a reduction variable or you use critical section to protect it from the concurrent access.
0 Kudos
kayjay66
Beginner
885 Views
10X for the info, finally it worked :D
i've got this:
threads created: 2 :D
thank you for ur help

as for the shared variables, some readings are waiting for me, i hope i'll be able to figure it alone :)
but this rule surely will help me, thank u again :)

sorry for bothering :)
0 Kudos
KitturGanesh
Employee
885 Views
Thanks and nice to know that it worked (per Mikhail's suggestion!)...
-Cheers,
Kittur
0 Kudos
Reply