- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Everyone,
I am trying to build tbb program with parallel_for
tbb::parallel_for(
tbb::blocked_range<int>(0,len),
[&](tbb::blocked_range<int> &r, size_t thdId) {
for(int i = r.begin(), i_end = r.end(); i < i_end - 1; i++) {
for (int j = 0; j < len ; j += 1) {
a
}
}
});
I am building it using g++ on 64-bit linux machine with version 5.4. I am getting this error while building it
internal compiler error: in expand_expr_real_1, at expr.c:9608
a
^
Any help would be appreciated.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The body of parallel_for should only have one parameter, in your case - a blocked_range. The second parameter - size_t thdld - should be removed.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page