The rocThrust repository is retired, please use the ROCm/rocm-libraries repository
Thrust is a parallel algorithm library. It has been ported to HIP and ROCm, which use the rocPRIM library. The HIP-ported library works on HIP and ROCm software. Currently there is no CUDA backend in place.
Software requirements include:
- CMake (3.10.2 or later)
- AMD ROCm Software (1.8.0 or later)
- Including the HipCC compiler, which must be set as your C++ compiler for ROCm
- rocPRIM library
- This is automatically downloaded and built by the CMake script
- Python 3.6 or higher (for HIP on Windows; only required for install scripts)
- Visual Studio 2019 with Clang support (for HIP on Windows)
- Strawberry Perl (for HIP on Windows)
Optional:
- GoogleTest
- Required only for tests; building tests is enabled by default
- This is automatically downloaded and built by the CMake script
- doxygen
- Required for building the documentation
For ROCm hardware requirements, refer to:
Note
The published rocThrust documentation is available here in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the docs
folder of this repository. As with all ROCm projects, the documentation is open source. For more information on contributing to the documentation, see Contribute to ROCm documentation.