I have a function myFunc() which utilizes OMP loops internally, but does not consume all the cores I have available. At a higher level, I call this function several times within a loop. Is there a simple way to use OMP on this outer loop, but not restrict each loop pass to a single thread?
e.g:
// I have 24 cores
// Would like to allow each for loop pass to have 12 cores
for (int outIter=0; outIter<2; outIter++) {
x[outIter] = myFunc(...) // This function has OMP inside
}