GitHub - ROCm/rpp: AMD ROCm Performance Primitives (RPP) library is a comprehensive high-performance computer vision library for AMD processors with HIP/OpenCL/CPU back-ends. (original) (raw)

MIT licensed doc

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 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.

AMD ROCm Performance Primitives (RPP) library is a comprehensive, high-performance computer vision library for AMD processors that have HIP, or CPU backends.

Latest release

GitHub tag (latest SemVer)

Supported Augmentations / Primitives

RPP supports various 2D image, 3D image (voxel), audio and miscellaneous augmentations and primitives as listed below.

Supported 2D Image Augmentations Samples

Supported 3D Image Augmentations Samples

slice (3D slice - 100x200 from 240x240x155):

Supported Audio Augmentations Samples

Spectrogram functionality output represented as an image:

Prerequisites

Operating Systems

Hardware

Important

sudo amdgpu-install --usecase=rocm

Compiler

Note

Libraries

Important

sudo apt install libstdc++-12-dev

Note

Installation instructions

The installation process uses the following steps:

Important

Use either package install or source install as described below.

Package install

Install RPP runtime, development, and test packages.

Note

Package install will auto install all dependencies.

Ubuntu

sudo apt install rpp rpp-dev rpp-test

RHEL

sudo yum install rpp rpp-devel rpp-test

SLES

sudo zypper install rpp rpp-devel rpp-test

Source build and install

HIP Backend

mkdir build-hip cd build-hip cmake ../rpp make -j8 sudo make install

Running Tests

After installing RPP, refer to the Verify installation section below for instructions on running tests.

Verify installation

The installer will copy

Verify with rpp-test package

Test package will install CTest module to test rpp. Follow below steps to test package install

mkdir rpp-test && cd rpp-test cmake ${ROCM_PATH}/share/rpp/test/ ctest -VV

Note

git clone https://github.com/NIFTI-Imaging/nifti_clib.git
cd nifti_clib
git reset --hard 84e323cc3cbb749b6a3eeef861894e444cf7d788
mkdir build && cd build && cmake ..
sudo make -j$nproc install

Test Functionalities

To test latest Image/Voxel/Audio/Miscellaneous functionalities of RPP using a python script please view AMD ROCm Performance Primitives (RPP) Test Suite

Adding RPP to your CMake project

To add RPP to your CMake project, you can use the following code after installation:

find_package(rpp REQUIRED) target_link_libraries(your_target PRIVATE rpp::rpp)

HIP backend support is automatic: rpp::rpp transitively propagates the HIP include paths and link libraries, and rpp/rpp.h includes rpp_backend.h which sets RPP_BACKEND_HIP for your compiled sources.

Note

find_package(rpp REQUIRED) sets the following variables in your CMake project:

Tip

If CMake is unable to find RPP, the following fixes can be tried:

MIVisionX support - OpenVX extension

MIVisionX RPP extensionvx_rpp supports RPP functionality through the OpenVX Framework.

Technical support

For RPP questions and feedback, you can contact us at mivisionx.support@amd.com.

To submit feature requests and bug reports, use ourGitHub issues page.

Documentation

You can build our documentation locally using the following code:

Release notes

All notable changes for each release are added to our changelog.

Tested configurations