oneTBB | oneAPI Threading Building Blocks | Architecture library
kandi X-RAY | oneTBB Summary
kandi X-RAY | oneTBB Summary
oneAPI Threading Building Blocks (oneTBB)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of oneTBB
oneTBB Key Features
oneTBB Examples and Code Snippets
Community Discussions
Trending Discussions on oneTBB
QUESTION
I want to run std algorithms using execution policies from C++17 using GCC9.3.
I've downloaded https://github.com/oneapi-src/oneTBB/releases/download/v2021.1.1/oneapi-tbb-2021.1.1-lin.tgz
But I'm getting an error that "task" class is not defined Even on "hello world" example from https://www.ibm.com/developerworks/aix/library/au-intelthreadbuilding/index.html
...ANSWER
Answered 2020-Dec-31 at 13:20From the error message I conclude that either the gcc or TBB implementation you use is sort of experimental. As you can see, gcc does find the TBB (no error on #include tbb/tbb.h
), that's good! Then, the errors show that some functions you use are hidden inside the tbb::v1
namespace. So you can either use using namespace tbb::v1
or add tbb::v1::
in front of all "unknown" names.
Then, in
https://community.intel.com/t5/Intel-oneAPI-Threading-Building/Unable-to-compile-TBB-program/td-p/1226663
they sey that tbb::task
is depreciated. Please use a bit more modern TBB tutorial :-)
QUESTION
I'm using TBB library like this:
...ANSWER
Answered 2020-Oct-01 at 13:08The error says 'blocked_range' requires template arguments
.
One solution is to add some template arguments. I've no idea what they should be but perhaps
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oneTBB
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page