oneDPL | oneAPI DPC++ Library https | Architecture library
kandi X-RAY | oneDPL Summary
kandi X-RAY | oneDPL Summary
oneAPI DPC++ Library (oneDPL) works with the Intel oneAPI DPC++/C++ Compiler to provide high-productivity APIs to developers, which can minimize Data Parallel C++ (DPC++) programming efforts across devices for high performance parallel applications.
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 oneDPL
oneDPL Key Features
oneDPL Examples and Code Snippets
Community Discussions
Trending Discussions on oneDPL
QUESTION
When I use oneDPL in my code, I face the following issue:
...ANSWER
Answered 2021-Jun-10 at 15:41It happens when you use oneTBB because oneTBB is not compatible with legacy TBB.
libstdc++9
, libstdc++10
use interfaces of legacy TBB that are not supported by oneTBB. It's fixed for libstdc++11
(See details).
oneTBB release notes say:
An application using Parallel STL algorithms in libstdc++ versions 9 and 10 may fail to compile due to incompatible interface changes between earlier versions of Threading Building Blocks (TBB) and oneAPI Threading Building Blocks (oneTBB). Disable support for Parallel STL algorithms by defining PSTL_USE_PARALLEL_POLICIES (in libstdc++ 9) or _GLIBCXX_USE_TBB_PAR_BACKEND (in libstdc++ 10) macro to zero before inclusion of the first standard header file in each translation unit.
If you use oneDPL, you don't have to apply these workarounds, because oneDPL does it for you, but you need to include its headers before the standard ones. Meanwhile, you can still use Parallel STL algorithms as before since oneDPL implements them.
If reordering of the headers is not suitable for you, you can define the macros, e.g.:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oneDPL
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