how to implement intel's tbb::blocked_range2d in C++
- by Hristo
I'm trying to parallelize nested for loops with parellel_for() and the blocked_range2d from Intel's TBB using C++. The for loops look like this:
for(int i = 0; i < N; ++i) {
for(int j = 0; j < E[i]; ++j) {
for(int k = 0; k < T; ++k) {
score[k] += delta(i, trRating[k][i], exRating[j][i]);
}
}
}
... and I am trying to do…