Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

nvtt doesn't compile with TBB #258

Open
gedalia opened this issue Mar 20, 2017 · 0 comments
Open

nvtt doesn't compile with TBB #258

gedalia opened this issue Mar 20, 2017 · 0 comments

Comments

@gedalia
Copy link

gedalia commented Mar 20, 2017

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(0, count, 1), TaskFunctor(task, context));
}

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' to 'int &'
tbb/parallel_for.h(102) : while compiling class template member function 'void tbb::interface9::internal::start_for<Range,Body,const tbb::auto_partitioner>::run_body(Range &)'
Seems like this has probably been broken for a while

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant