Files
rocm-systems/source/docs/installation.md
T

80 wiersze
1.9 KiB
Markdown
Czysty Zwykły widok Historia

2023-09-12 12:34:36 -05:00
# Installation
```eval_rst
.. toctree::
:glob:
:maxdepth: 4
```
2024-03-08 08:35:16 +05:30
## Operating System
2023-09-12 12:34:36 -05:00
2024-03-08 08:35:16 +05:30
ROCprofiler is only supported on Linux. The following distributions are tested:
2023-09-12 12:34:36 -05:00
2024-03-08 08:35:16 +05:30
- Ubuntu 20.04
- Ubuntu 22.04
- OpenSUSE 15.4
- RedHat 8.8
2023-09-12 12:34:36 -05:00
2024-04-14 14:35:00 -05:00
Other OS distributions may be supported but have yet to be tested.
2023-09-12 12:34:36 -05:00
### 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.
```shell
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
...
VERSION_ID="20.04"
...
```
2024-04-14 14:35:00 -05:00
The relevant fields are `ID` and the `VERSION_ID`.
2023-09-12 12:34:36 -05:00
## Installing ROCprofiler from source
### Build Requirements
2024-03-08 08:35:16 +05:30
ROCprofiler needs a CMake (https://cmake.org/) version 3.21 or higher.
2024-04-14 14:35:00 -05:00
***If the system installed 'CMake' is too old, installing a new version can be done through several methods. One of the easiest options is to use PyPi (i.e., pythons pip):***
2024-03-08 08:35:16 +05:30
```bash
2024-04-14 14:35:00 -05:00
pip install --user 'cmake==3.22.0'
2024-03-08 08:35:16 +05:30
export PATH=${HOME}/.local/bin:${PATH}
```
2023-09-12 12:34:36 -05:00
### Building ROCprofiler
2024-03-08 08:35:16 +05:30
```bash
2024-04-14 14:35:00 -05:00
git clone https://git@github.com:ROCm/rocprofiler-sdk.git rocprofiler-sdk-source
2024-03-08 08:35:16 +05:30
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
```
2023-09-12 12:34:36 -05:00
### Testing ROCprofiler
2024-03-08 08:35:16 +05:30
To run the built tests, cd into the `rocprofiler-sdk-build` directory and run:
```bash
ctest --output-on-failure -O ctest.all.log
```
2023-09-12 12:34:36 -05:00
### Installing ROCprofiler
2024-03-08 08:35:16 +05:30
To install ROCprofiler from the `rocprofiler-sdk-build` directory, run:
```bash
cmake --build rocprofiler-sdk-build --target install
```