Skip to content

Working with CentOS Docker Image

Mario HDL edited this page Dec 11, 2018 · 4 revisions

Before activating docker, it is recommended to clone RVS into separate folder. This folder will be your working source folder for CentOS development.

# from host:
cd /work/<yoursubtree>
mkdir centos
cd centos
git clone -b <your_brach> https://github.com/ROCm-Developer-Tools/ROCmValidationSuite.git

Start docker CentOS and init environment like this:

# from host:
sudo docker run --privileged=true --rm -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video -v /work/<yoursubtree>/centos/ROCmValidationSuite:/work/rvs -v /home/user1:/home/root 88e8c5704c2e

# once CentOS prompt shows up, init environment:
scl enable devtoolset-7 bash

Change to rvs working folder in CentOS and build RVS

cd /work/rvs
cmake . -B/build
cd /build
make

Please note that build folder is in CentOS image and NOT present in the host file system.

Once built, run RVS as usual to verify all modules are compiled and are loading correctly:

cd /build/bin
./rvs -t

You should see the list of modules with basic help on configuration keys.

Clone this wiki locally