Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/rocm/rpp
agumentation amd bitwise channel-extract computer-vision contrast cpu gpu hip histogram hpc mivisionx opencl openvx radeon-performance-primitives rocm rpp warp-affine
Last synced: about 11 hours ago
JSON representation
AMD ROCm Performance Primitives (RPP) library is a comprehensive high-performance computer vision library for AMD processors with HIP/OpenCL/CPU back-ends.
- Host: GitHub
- URL: https://github.com/rocm/rpp
- Owner: ROCm
- License: mit
- Created: 2019-08-28T23:59:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T23:11:36.000Z (6 months ago)
- Last Synced: 2024-05-20T02:06:06.677Z (6 months ago)
- Topics: agumentation, amd, bitwise, channel-extract, computer-vision, contrast, cpu, gpu, hip, histogram, hpc, mivisionx, opencl, openvx, radeon-performance-primitives, rocm, rpp, warp-affine
- Language: C++
- Homepage: https://rocm.docs.amd.com/projects/rpp/en/latest/
- Size: 87.2 MB
- Stars: 49
- Watchers: 16
- Forks: 34
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![doc](https://img.shields.io/badge/doc-readthedocs-blueviolet)](https://gpuopen-professionalcompute-libraries.github.io/rpp/)AMD ROCm Performance Primitives (RPP) library is a comprehensive, high-performance computer
vision library for AMD processors that have `HIP`, `OpenCL`, or `CPU` backends.#### Latest release
[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/GPUOpen-ProfessionalCompute-Libraries/rpp?style=for-the-badge)](https://github.com/ROCm/rpp/releases)## Supported functionalities and variants
### Supported 3D Functionalities Samples
Input
(nifti1 .nii medical image) | fused_multiply_add_scalar
(brightened 3D image)
:-------------------------:|:-------------------------:
![](docs/data/niftiInput.gif) | ![](docs/data/niftiOutputBrightened.gif)## Supported audio functionalities and variants
* Below are the list of audio functions supported
* Non Silent Region Detection (HOST and HIP)
* To Decibels (HOST and HIP)
* Downmixing (HOST and HIP)
* Preemphasis Filter (HOST and HIP)
* Resample (HOST and HIP)
* Mel Filter Bank (HOST and HIP)
* Spectrogram (HOST and HIP)Spectrogram kernel output represented as a image
![](docs/data/spectrogramOutput.png)
## Prerequisites* Linux
* Ubuntu - `20.04` / `22.04`
* RedHat - `8` / `9`
* SLES - `15-SP5`* [ROCm-supported hardware](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html)
> [!IMPORTANT]
> `gfx908` or higher GPU required* Install ROCm `6.1.0` or later with [amdgpu-install](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/amdgpu-install.html): Required usecase - rocm
> [!IMPORTANT]
> `sudo amdgpu-install --usecase=rocm`* CMake Version `3.5` and above
```shell
sudo apt install cmake
```* Clang Version `5.0.1` and above
```shell
sudo apt install clang
```* [Half-precision floating-point](https://half.sourceforge.net) library - Version `1.12.0` or higher
```shell
sudo apt install half
```> [!IMPORTANT]
> * Compiler features required
> * C++17
> * OpenMP
> * Threads>[!NOTE]
> * All package installs are shown with the `apt` package manager. Use the appropriate package manager for your operating system.## Installation instructions
The installation process uses the following steps:
* [ROCm-supported hardware](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html) install verification
* Install ROCm `6.1.0` or later with [amdgpu-install](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/amdgpu-install.html) with `--usecase=rocm`
* Use **either** [package install](#package-install) **or** [source install](#source-install) as described below.
### Package install
Install RPP runtime, development, and test packages.
* Runtime package - `rpp` only provides the rpp library `librpp.so`
* Development package - `rpp-dev`/`rpp-devel` provides the library, header files, and samples
* Test package - `rpp-test` provides CTest to verify installation> [!NOTE]
> Package install will auto install all dependencies.#### Ubuntu
```shell
sudo apt install rpp rpp-dev rpp-test
```#### RHEL
```shell
sudo yum install rpp rpp-devel rpp-test
```#### SLES
```shell
sudo zypper install rpp rpp-devel rpp-test
```### Source build and install
* Clone RPP git repository
```shell
git clone https://github.com/ROCm/rpp.git
```> [!NOTE]
> RPP has support for two GPU backends: **OPENCL** and **HIP**:#### HIP Backend
```shell
mkdir build-hip
cd build-hip
cmake ../rpp
make -j8
sudo make install
```+ Run tests - [test option instructions](https://github.com/ROCm/MIVisionX/wiki/CTest)
```shell
make test
```>[!NOTE]
> `make test` requires [test suite prerequisites](utilities/test_suite/README.md) installed#### OCL Backend
```shell
mkdir build-ocl
cd build-ocl
cmake -DBACKEND=OCL ../rpp
make -j8
sudo make install
```## Verify installation
The installer will copy
* Libraries into `/opt/rocm/lib`
* Header files into `/opt/rocm/include/rpp`
* Samples folder into `/opt/rocm/share/rpp`
* Documents folder into `/opt/rocm/share/doc/rpp`>[!NOTE]
> [Test suite prerequisites](utilities/test_suite#prerequisites) install is required to run tests### Verify with rpp-test package
Test package will install CTest module to test rpp. Follow below steps to test package install
```shell
mkdir rpp-test && cd rpp-test
cmake /opt/rocm/share/rpp/test/
ctest -VV
```## 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](utilities/test_suite/README.md)
## MIVisionX support - OpenVX extension
[MIVisionX](https://github.com/ROCm/MIVisionX) RPP extension
[vx_rpp](https://github.com/ROCm/MIVisionX/tree/master/amd_openvx_extensions/amd_rpp#amd-rpp-extension) supports RPP functionality through the OpenVX Framework.## Technical support
For RPP questions and feedback, you can contact us at `[email protected]`.
To submit feature requests and bug reports, use our
[GitHub issues](https://github.com/ROCm/rpp/issues) page.## Documentation
You can build our documentation locally using the following code:
* Sphinx
```bash
cd docs
pip3 install -r .sphinx/requirements.txt
python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
```* Doxygen
```bash
doxygen .Doxyfile
```## Release notes
All notable changes for each release are added to our [changelog](CHANGELOG.md).
## Tested configurations
* Linux distribution
* Ubuntu - `20.04` / `22.04`
* RedHat - `8` / `9`
* SLES - `15-SP5`
* ROCm: rocm-core - `6.3.0.60300`
* CMake - Version `3.16.3`+
* Clang - Version `5.0.1`+
* half - IEEE 754-based half-precision floating-point library - Version `1.12.0` / package V`1.12.0.60200`
* OpenCV - [4.6.0](https://github.com/opencv/opencv/releases/tag/4.6.0)