1 | initial version |
Try this:
// header files for TBB
#include <tbb\tbb_thread.h>
#include <tbb\blocked_range.h>
#include <tbb\parallel_for.h>
#include <tbb\parallel_reduce.h>
#include <tbb\task_scheduler_init.h>
#include <tbb\mutex.h>
#include <tbb\tbb_thread.h>
#include <tbb\blocked_range2d.h>
using namespace tbb;
// in main() function
int TBB_THREADS = 8;
task_scheduler_init init(TBB_THREADS);