Macros¶
Version Macros¶
Use these macros to get the current version of the oneAPI DPC++ Library (oneDPL).
Macro |
Description |
---|---|
|
A decimal number for the major version of the library. |
|
A decimal number for the minor version. |
|
A decimal number for the patch. |
|
The version of LLVM PSTL code used in oneDPL. The value is a decimal numeral of the form |
|
|
|
|
|
|
Additional Macros¶
Use these macros to control aspects of oneDPL usage. You can set them in your program code before including oneDPL headers.
Macro |
Description |
---|---|
|
This macro enables the use of Using this macro may have the same effect on the implementation of parallel algorithms in the C++ standard libraries of GCC and LLVM. |
|
This macro enables Parallel STL to emit compile-time messages, such as warnings about an algorithm not supporting a certain execution policy. When set to 1, the macro allows the implementation to emit usage warnings. When the macro is not defined (by default) or evaluates to zero, usage warnings are disabled. Using this macro may have the same effect on the implementation of parallel algorithms in the C++ standard libraries of GCC and LLVM. |
|
This macro controls the use of oneAPI Threading Building Blocks (oneTBB) or
Threading Building Blocks (TBB) for parallel policies.
When the macro is set to 0, algorithms with the |
|
This macro enables the use of the DPC++ policies. When the macro is not defined (by default) or evaluates to non-zero, DPC++ policies are enabled. When the macro is set to 0 there is no dependency on the oneAPI DPC++/C++ Compiler and runtime libraries. Trying to use DPC++ policies will lead to compilation errors. |
|
This macro allows waiting for completion of certain algorithms executed with DPC++ policies to be deferred. (Disabled by default.) |
|
Use this macro to build your code containing oneDPL parallel algorithms for FPGA devices. (Disabled by default.) |
|
Use this macro to build your code containing Parallel STL algorithms for FPGA emulation device. (Disabled by default.) Note: Define |