Radeon Performance Primitives (RPP) library is a comprehensive high performance computer vision library for AMD (CPU and GPU) with HIP and OpenCL back-ends.
[!NOTE]
The published documentation is available at ROCm Performance Primitives (RPP) in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in thedocs
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.
AMD ROCm Performance Primitives (RPP) library is a comprehensive, high-performance computer
vision library for AMD processors that have HIP
, OpenCL
, or CPU
backends.
Input (nifti1 .nii medical image) |
fused_multiply_add_scalar (brightened 3D image) |
---|---|
![]() |
![]() |
Spectrogram kernel output represented as a image
22.04
/ 24.04
8
/ 9
15-SP5
[!IMPORTANT]
- ROCm-supported hardware required for HIP backend
gfx908
or higher GPU required
6.1.0
or later with amdgpu-install: Required usecase:rocm
[!IMPORTANT]
sudo amdgpu-install --usecase=rocm
[!NOTE]
- For CPU only backend use Clang Version
5.0.1
and above
sudo apt install clang
3.10
and above
sudo apt install cmake
1.12.0
or higher
sudo apt install half
[!IMPORTANT]
- Required compiler support
- C++17
- OpenMP
- Threads
- On Ubuntu 22.04 - Additional package required: libstdc++-12-dev
sudo apt install libstdc++-12-dev
[!NOTE]
- All package installs are shown with the
apt
package manager. Use the appropriate package manager for your operating system.
The installation process uses the following steps:
ROCm-supported hardware install verification
Install ROCm 6.1.0
or later with amdgpu-install with --usecase=rocm
[!IMPORTANT]
Use either package install or source install as described below.
Install RPP runtime, development, and test packages.
rpp
only provides the rpp library librpp.so
rpp-dev
/rpp-devel
provides the library, header files, and samplesrpp-test
provides CTest to verify installation[!NOTE]
Package install will auto install all dependencies.
sudo apt install rpp rpp-dev rpp-test
sudo yum install rpp rpp-devel rpp-test
sudo zypper install rpp rpp-devel rpp-test
Clone RPP git repository
git clone https://github.com/ROCm/rpp.git
[!NOTE]
RPP has support for two GPU backends: OPENCL and HIP:
mkdir build-hip
cd build-hip
cmake ../rpp
make -j8
sudo make install
Run tests - test option instructions
make test
[!IMPORTANT]
make test
requires test suite prerequisites installed
mkdir build-ocl
cd build-ocl
cmake -DBACKEND=OCL ../rpp
make -j8
sudo make install
The installer will copy
/opt/rocm/lib
/opt/rocm/include/rpp
/opt/rocm/share/rpp
/opt/rocm/share/doc/rpp
Test package will install CTest module to test rpp. Follow below steps to test package install
mkdir rpp-test && cd rpp-test
cmake /opt/rocm/share/rpp/test/
ctest -VV
[!IMPORTANT]
Test suite prerequisites are required to run tests
To test latest Image/Voxel/Audio/Miscellaneous functionalities of RPP using a python script please view AMD ROCm Performance Primitives (RPP) Test Suite
MIVisionX RPP extension
vx_rpp supports RPP functionality through the OpenVX Framework.
For RPP questions and feedback, you can contact us at mivisionx.support@amd.com
.
To submit feature requests and bug reports, use our
GitHub issues page.
You can build our documentation locally using the following code:
Sphinx
cd docs
pip3 install -r .sphinx/requirements.txt
python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
Doxygen
doxygen .Doxyfile
All notable changes for each release are added to our changelog.
22.04
/ 24.04
8
/ 9
15-SP5
6.3.0.60300
3.16.3
+18.0.0
1.12.0
/ package V1.12.0