.. toctree::
:glob:
:maxdepth: 4
ROCprofiler is only supported on Linux. The following distributions are tested:
- Ubuntu 20.04
- Ubuntu 22.04
- OpenSUSE 15.4
- RedHat 8.8
Other OS distributions may be supported but are not tested.
If you are unsure of the operating system and version, the /etc/os-release
and /usr/lib/os-release
files contain
operating system identification data for Linux systems.
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
...
VERSION_ID="20.04"
...
The relevent fields are ID
and the VERSION_ID
.
ROCprofiler needs a CMake (https://cmake.org/) version 3.21 or higher.
If the system installed cmake is too old, installing a new version of cmake can be done through several methods. One of the easiest options is to use PyPi (i.e. python’s pip):
pip install --user 'cmake==3.21.0'
export PATH=${HOME}/.local/bin:${PATH}
git clone https://git@github.com:ROCm/rocprofiler-sdk-internal.git rocprofiler-sdk-source
cmake \
-B rocprofiler-sdk-build \
-D ROCPROFILER_BUILD_TESTS=ON \
-D ROCPROFILER_BUILD_SAMPLES=ON \
-D ROCPROFILER_BUILD_DOCS=ON \
-D CMAKE_INSTALL_PREFIX=/opt/rocm \
rocprofiler-sdk-source
cmake --build rocprofiler-sdk-build --target all --parallel 8
To run the built tests, cd into the rocprofiler-sdk-build
directory and run:
ctest --output-on-failure -O ctest.all.log
To install ROCprofiler from the rocprofiler-sdk-build
directory, run:
cmake --build rocprofiler-sdk-build --target install