We use Xcode 4.5 in a C ++ 11 project, where we use OpenMP to speed up our calculations:
#pragma omp parallel for for (uint x=1; x<grid.width()-1; ++x) { for (uint y=1; y<grid.height()-1; ++y) { // code } }
Despite the fact that several threads used by the program are shown in the activity monitor, we noticed that only one core is used:

We also run the same code on Ubuntu using GCC 4.7, and we observe competition on all cores. Maybe OpenMP support was removed in Apple LLVM? Is there an alternative to OpenMP? We cannot switch to GCC, since we are using the features of C ++ 11.
source share