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

81 行
2.2 KiB
Markdown
原始文件 標準檢視 歷史記錄

2024-10-30 19:39:08 +05:30
---
myst:
html_meta:
"description": "ROCprofiler-SDK is a tooling infrastructure for profiling general-purpose GPU compute applications running on the ROCm software."
2025-02-28 10:10:26 +05:30
"keywords": "Installing ROCprofiler-SDK, Install ROCprofiler-SDK, Build ROCprofiler-SDK"
2024-10-30 19:39:08 +05:30
---
# ROCprofiler-SDK installation
2024-07-18 12:58:20 +05:30
This document provides information required to install ROCprofiler-SDK from source.
## Supported systems
ROCprofiler-SDK is supported only on Linux. The following distributions are tested:
- Ubuntu 20.04
- Ubuntu 22.04
- OpenSUSE 15.4
- RedHat 8.8
2024-08-03 00:38:04 +05:30
ROCprofiler-SDK might operate as expected on other [Linux distributions](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html#supported-operating-systems), but has not been tested.
2024-07-18 12:58:20 +05:30
### Identifying the operating system
To identify the Linux distribution and version, see the `/etc/os-release` and `/usr/lib/os-release` files:
```shell
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
...
VERSION_ID="20.04"
...
```
The relevant fields are `ID` and the `VERSION_ID`.
## Build requirements
2024-08-03 00:38:04 +05:30
Install [CMake](https://cmake.org/) version 3.21 (or later).
2024-07-18 12:58:20 +05:30
2024-08-03 00:38:04 +05:30
:::{note}
If the `CMake` installed on the system is too old, you can install a new version using various methods. One of the easiest options is to use PyPi (Python’s pip).
:::
2024-07-18 12:58:20 +05:30
```bash
pip install --user 'cmake==3.22.0'
export PATH=${HOME}/.local/bin:${PATH}
```
2024-08-13 23:35:12 +05:30
2024-07-18 12:58:20 +05:30
## Building ROCprofiler-SDK
```bash
git clone https://github.com/ROCm/rocprofiler-sdk.git rocprofiler-sdk-source
2024-07-18 12:58:20 +05:30
cmake \
-B rocprofiler-sdk-build \
-D ROCPROFILER_BUILD_TESTS=ON \
-D ROCPROFILER_BUILD_SAMPLES=ON \
-D CMAKE_INSTALL_PREFIX=/opt/rocm \
rocprofiler-sdk-source
2024-10-30 19:39:08 +05:30
cmake --build rocprofiler-sdk-build --target all --parallel 8
2024-07-18 12:58:20 +05:30
```
## Installing ROCprofiler-SDK
To install ROCprofiler-SDK from the `rocprofiler-sdk-build` directory, run:
```bash
cmake --build rocprofiler-sdk-build --target install
```
## Testing ROCprofiler-SDK
To run the built tests, `cd` into the `rocprofiler-sdk-build` directory and run:
```bash
ctest --output-on-failure -O ctest.all.log
2024-08-13 23:35:12 +05:30
```