nvtt doesn't compile with TBB
tested against tbb 4.5
struct TaskFunctor { TaskFunctor(Task * task, void * context) : task(task), context(context) {} void operator()(int & n) const { task(context, n); } Task * task; void * context; };
the member variable initialization is bogus,
but bigger issue is
virtual void dispatch(Task * task, void * context, int count) {
parallel_for(blocked_range
doesn't compile
putting tbb:: in front of
parallel_for and blocked_range helps a bit but still fails with
tbb/parallel_for.h(102) : error C2664: 'void nvtt::TaskFunctor::operator ()(int &) const' : cannot convert argument 1 from 'tbb::blocked_range