Using HIPSTDPAR

Using HIPSTDPAR#

The HIPSTDPAR header files contain overloads of the C++ Standard Library parallel algorithms that offload the parallel algorithms to AMD accelerators and GPUs.

Note

HIPSTDPAR is installed with rocThrust and can only be installed through rocThrust.

To use the HIPSTDPAR headers, compile your code with the --hipstdpar flag. For more information about the effects of compiling with --hipstdpar, see C++ Standard Parallelism Offload Support: Compiler And Runtime.

Both the AMD fork of LLVM and the upstream LLVM support offloading parallel algorithms.

Tests for validating HIPSTDPAR implementations are enabled when rocThrust is built with BUILD_HIPSTDPAR_TEST=ON.

HIPSTDPAR requires rocThrust, rocPRIM, and TBB.

Note

If you’re using libstdc++ 9 or libstdc++ 10, your application might fail to compile due to incompatibilities between legacy TBB and oneTBB. See the oneAPI Threading Building Blocks Release Notes for more information.