Installing rocCV with the package installer

Installing rocCV with the package installer#

2025-08-12

2 min read time

Applies to Linux

Three rocCV packages are available:

roccv: The rocCV runtime package. This is the basic rocCV package that only provides dynamic libraries. It must always be installed.
roccv-dev: The rocCV development package. This package installs a full suite of libraries, header files, and samples. This package needs to be installed to use samples.
roccv-test: A test package that provides CTests to verify the installation.

All the required prerequisites except for OpenCV and DLPack on RHEL and SLES are installed with the rocCV packages. OpenCV and DLPack must be installed manually on RHEL and SLES.

Basic installation#

Use the following commands to install only the rocCV runtime package:

sudo apt-get install roccv
sudo yum install roccv
sudo zypper install roccv

Complete installation#

Use the following commands to install roccv, roccv-dev, and roccv-test:

… tab-set:

.. tab-item:: Ubuntu

  .. code:: shell

    sudo apt-get install roccv roccv-dev roccv-test

.. tab-item:: RHEL

  .. code:: shell

    sudo yum install roccv roccv-devel roccv-test

.. tab-item:: SLES

  .. code:: shell

    sudo zypper install roccv roccv-devel roccv-test

Set PYTHONPATH to use the rocCV Python module:

export PYTHONPATH=/opt/rocm/lib:$PYTHONPATH

Add rocCV to your PATH and LD_LIBRARY_PATH:

export PATH=$PATH:/opt/rocm/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/lib