-
Notifications
You must be signed in to change notification settings - Fork 75
Linux
Kiriti Gowda edited this page Jan 8, 2021
·
6 revisions
-
Linux Version Info
- Ubuntu
cat /etc/lsb-release && uname -a
- CentOS
cat /etc/os-release && uname -a
-
Linux CPU & GPU Info
- Ubuntu
cat /proc/cpuinfo && lspci -v -s $(lspci | grep ' VGA ' | cut -d" " -f 1)
- CentOS
cat /proc/cpuinfo && /sbin/lsmod | grep gpu
- Linux distribution
-
Ubuntu -
16.04
/18.04
/20.04
-
CentOS -
7
/8
-
Ubuntu -
- Install ROCm
- CMake 2.8 or newer download
- ROCm CMake, MIOpenGEMM & MIOpen for
Neural Net Extensions
(vx_nn) - Qt Creator for Cloud Inference Client
-
Protobuf for inference generator & model compiler
- install
libprotobuf-dev
andprotobuf-compiler
needed for vx_nn
- install
-
OpenCV 3.4
- Set
OpenCV_DIR
environment variable toOpenCV/build
folder
- Set
-
FFMPEG n4.0.4 - Optional
- FFMPEG is required for amd_media & mv_deploy modules
- RALI Prerequisites
-
Install ROCm
-
On
Ubuntu
sudo apt-get install mivisionx
-
On
CentOS
sudo yum install mivisionx
Note:
-
vx_winml
is not supported onlinux
- source code will not available with
apt-get
/yum
install - the installer will copy
- executables into
/opt/rocm/mivisionx/bin
- libraries into
/opt/rocm/mivisionx/lib
- OpenVX and module header files into
/opt/rocm/mivisionx/include
- model compiler, toolkit, & samples placed in
/opt/rocm/mivisionx
- executables into
- Package (.deb & .rpm) install requires
OpenCV v3.4.0
to executeAMD OpenCV extensions
-
-
Install ROCm
-
Use the below commands to set up and build MIVisionX
- Clone MIVisionX
git clone https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.git cd MIVisionX
- Run Setup
python MIVisionX-setup.py
Note:
- use
--installer yum
for CentOS - This script only needs to be executed once
mkdir build cd build cmake ../ make -j8 sudo make install
Note: vx_winml is not supported on Linux
-
The installer will copy
- executables into
/opt/rocm/mivisionx/bin
- libraries into
/opt/rocm/mivisionx/lib
- OpenVX and OpenVX module header files into
/opt/rocm/mivisionx/include
- Apps, Samples, Documents, Model Compiler, and Toolkit are placed into
/opt/rocm/mivisionx
- executables into
-
Run the below sample to verify the installation
Canny Edge Detection
export PATH=$PATH:/opt/rocm/mivisionx/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/mivisionx/lib runvx /opt/rocm/mivisionx/samples/gdf/canny.gdf
Note: More samples are available in samples folder
Copyright (c) 2015 - 2023 Advanced Micro Devices, Inc. All rights reserved.