.. meta:: :description: Omnitrace documentation and reference :keywords: Omnitrace, ROCm, profiler, tracking, visualization, tool, Instinct, accelerator, AMD ************************************* Omnitrace installation ************************************* The following information builds on the guidelines in the :doc:`Quick start <./quick-start>` guide. It covers how to install `Omnitrace `_ from source or a binary distribution, as well as the :ref:`post-installation-steps`. If you have problems using Omnitrace after installation, consult the :ref:`post-installation-troubleshooting` section. Release links ======================================== To review and install either the current Omnitrace release or earlier releases, use these links: * Latest Omnitrace Release: ``_ * All Omnitrace Releases: ``_ Operating system support ======================================== Omnitrace is only supported on Linux. The following distributions are tested in the Omnitrace GitHub workflows: * Ubuntu 20.04 * Ubuntu 22.04 * OpenSUSE 15.3 * OpenSUSE 15.4 * Red Hat 8.7 * Red Hat 9.0 * Red Hat 9.1 Other OS distributions might function but are not supported or tested. Identifying the operating system ----------------------------------- 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. .. code-block:: shell $ cat /etc/os-release .. code-block:: shell NAME="Ubuntu" VERSION="20.04.4 LTS (Focal Fossa)" ID=ubuntu ... VERSION_ID="20.04" ... The relevant fields are ``ID`` and the ``VERSION_ID``. Architecture ======================================== With regards to instrumentation, at present only AMD64 (x86_64) architectures are tested. However, Dyninst supports several more architectures and Omnitrace instrumentation may support other CPU architectures such as aarch64 and ppc64. Other modes of use, such as sampling and causal profiling, are not dependent on Dyninst and therefore might be more portable. Installing Omnitrace from binary distributions ================================================ Every Omnitrace release provides binary installer scripts of the form: .. code-block:: shell omnitrace-{VERSION}-{OS_DISTRIB}-{OS_VERSION}[-ROCm-{ROCM_VERSION}[-{EXTRA}]].sh For example, .. code-block:: shell omnitrace-1.0.0-ubuntu-18.04-OMPT-PAPI-Python3.sh omnitrace-1.0.0-ubuntu-18.04-ROCm-405000-OMPT-PAPI-Python3.sh ... omnitrace-1.0.0-ubuntu-20.04-ROCm-50000-OMPT-PAPI-Python3.sh Any of the ``EXTRA`` fields with a CMake build option (for example, PAPI, as referenced in a following section) or with no link requirements (such as OMPT) have self-contained support for these packages. To install Omnitrace using a binary installer script, follow these steps: #. Download the appropriate binary distribution .. code-block:: shell wget https://github.com/ROCm/omnitrace/releases/download/v/