rocAL prerequisites

rocAL prerequisites#

Building rocAL from source requires CMake 3.10 or later, amdclang++ 18.0.0 or later, and the following compiler support:

  • C++17

  • OpenMP

  • Threads

The installation method used for rocAL depends on the version of ROCm. For ROCm 7.2.x or below, follow the package install method. For ROCm 7.13 or above, build rocAL from source on top of the ROCm Core SDK.

The following prerequisites are required by both installation methods:

Note

TurboJPEG must be installed manually on SLES.
To use FFMPeg on SLES and RHEL, the FFMPeg-dev package must be installed manually.
libstdc++-12-dev is required on Ubuntu 22.04 only and must be installed manually.

Use the following commands to install those packages (make sure to also manually install the other prerequisites):

sudo apt install cmake
sudo apt install pkg-config
sudo apt install libprotobuf-dev protobuf-compiler
sudo apt install libturbojpeg0-dev libjpeg-dev
sudo apt install python3-dev python3-pip python3-wheel
sudo apt install liblmdb-dev # optional: needed for Caffe/Caffe2 LMDB reader support
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
sudo yum install cmake
sudo yum install pkg-config
sudo yum install protobuf-devel protobuf-compiler
sudo yum install turbojpeg-devel libjpeg-turbo-devel
sudo yum install python3-devel python3-pip python3-wheel
sudo yum install lmdb-devel # optional: needed for Caffe/Caffe2 LMDB reader support
sudo zypper install cmake
sudo zypper install pkg-config
sudo zypper install protobuf-devel libprotobuf-c-devel
sudo zypper install python3-devel python3-pip python3-wheel
sudo zypper install lmdb-devel # optional: needed for Caffe/Caffe2 LMDB reader support

For source install, it is also required to install the following prerequisites:

  • MIVisionX manually (ROCm/MIVisionX).

  • rocDecode test package:

    sudo apt install amdrocm-decode-test
    
    sudo dnf install amdrocm-decode-test
    
    sudo zypper install amdrocm-decode-test
    

For package install, it is also required to install the following prerequisites:

Use the following commands to install these:

sudo apt install mivisionx-dev
sudo apt install hip-dev
sudo apt install half
sudo apt install rocdecode-dev
sudo apt install rocjpeg-dev
sudo yum install mivisionx-devel
sudo yum install hip-devel
sudo yum install half
sudo yum install rocdecode-devel
sudo yum install rocjpeg-devel
sudo zypper install mivisionx-devel
sudo zypper install hip-devel
sudo zypper install half
sudo zypper install rocdecode-devel
sudo zypper install rocjpeg-devel