Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It does indeed use OpenMP. However, if you open parallel.cpp, you can see that it first uses tbb, then cstripes, then openmp. In the definition for the OpenMP version, there you see the #pragma omp parallel.

So if you had either of the other two, then it would have been using those. Also, it's possible that if the functions you called have Intel IPP, which may or may not use a parallel version by default.

To test the effects of parallelization, there's a setNumThreads function. If you set it to 0, it will disable threading entirely. You can do this at run-time, in your program. Setting it to <0 will reset the value to default.