Módulos de sub-rotinas Intel®

CPU not used at 100%

Hi everyone,

I wonder if there is not a bug inside TTB library. I explain:

I have a long computation for 1 000 000 objects. For this, I use parralel_for paradigm like this:

size_t size = 1000000;
tbb::parallel_for(tbb::blocked_range<size_t>(0, size),
        [&](const tbb::blocked_range<size_t>& r) {
            for (size_t i=r.begin(); i != r.end(); ++i)
                //long computation here

When I launch the program, sometimes my 8 cores work at 100% => That's great !

Assine o Módulos de sub-rotinas Intel®