Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

166 строки
4.3 KiB
ReStructuredText
Исходник Постоянная ссылка Обычный вид История

2024-05-02 20:02:30 -07:00
.. meta::
2025-02-12 21:07:30 +05:30
:description: The ROCm Data Center tool (RDC) addresses key infrastructure challenges regarding AMD GPUs in cluster and data center environments and simplifies their administration
:keywords: RDC installation, Install RDC, Install ROCm Data Center tool, Building ROCm Data Center, Building RDC
2024-05-02 20:02:30 -07:00
.. _rdc-install:
2025-02-12 21:07:30 +05:30
******************
RDC installation
******************
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
RDC is part of the AMD ROCm software and available on the distributions supported by AMD ROCm. This topic provides information required to install RDC from prebuilt packages and source.
2024-05-02 20:02:30 -07:00
Prerequisites
2025-02-12 21:07:30 +05:30
==============
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
To install RDC from source, ensure that your system meets the following requirements:
2024-05-02 20:02:30 -07:00
2025-09-18 21:21:36 +05:30
- **Supported platforms:** See the `list of ROCm-supported operating systems and GPUs <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html#supported-operating-systems>`_.
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
- **Dependencies:**
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- CMake >= 3.15
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- g++ (5.4.0)
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- gRPC and protoc
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- libcap-dev
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- :doc:`AMD ROCm platform <rocm:index>` including:
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- :doc:`AMDSMI library <amdsmi:index>`
- `ROCK kernel driver <https://github.com/ROCm/ROCK-Kernel-Driver>`_
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
For building latest documentation:
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- Doxygen (1.8.11)
2025-05-05 23:38:33 +05:30
2025-02-12 21:07:30 +05:30
- LaTeX (pdfTeX 3.14159265-2.6-1.40.16)
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
$ sudo apt install libcap-dev
$ sudo apt install -y doxygen
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
Build RDC from source
======================
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
The following sections provide steps to build RDC from source.
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
Build gRPC and Protoc
----------------------
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
gRPC and Protoc must be built from source as the prebuilt packages are not available for the same. Here are the steps:
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
1. Install the required tools:
2024-05-02 20:02:30 -07:00
2025-05-05 23:38:33 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
sudo apt-get update
2025-07-18 12:51:04 -05:00
sudo apt-get install automake make g++ unzip build-essential autoconf libtool pkg-config libgflags-dev libgtest-dev clang libc++-dev curl libcap-dev
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
2. Clone and build gRPC:
2024-05-02 20:02:30 -07:00
2025-05-05 23:38:33 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-05-12 13:15:17 +05:30
git clone -b v1.67.1 https://github.com/grpc/grpc --depth=1 --shallow-submodules --recurse-submodules
2025-02-12 21:07:30 +05:30
cd grpc
export GRPC_ROOT=/opt/grpc
cmake -B build \
-DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX="$GRPC_ROOT" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
make -C build -j $(nproc)
sudo make -C build install
echo "$GRPC_ROOT" | sudo tee /etc/ld.so.conf.d/grpc.conf
sudo ldconfig
cd ..
Build RDC
-----------
1. Clone the RDC repository:
2024-05-02 20:02:30 -07:00
2025-05-05 23:38:33 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
git clone https://github.com/ROCm/rocm-systems --recursive
cd rocm-systems/projects/rdc
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
2. Configure the build:
2024-05-02 20:02:30 -07:00
2025-05-05 23:38:33 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
cmake -B build -DGRPC_ROOT="$GRPC_ROOT"
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
3. You can also enable the following optional features:
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
- ROCm profiler:
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
cmake -B build -DBUILD_PROFILER=ON
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
- ROCm Validation Suite (RVS):
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
cmake -B build -DBUILD_RVS=ON
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
- RDC library only (without ``rdci`` and ``rdcd``):
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
cmake -B build -DBUILD_STANDALONE=OFF
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
- RDC library without ROCm runtime:
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
cmake -B build -DBUILD_RUNTIME=OFF
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
4. Build and install:
2024-05-02 20:02:30 -07:00
2025-05-05 23:38:33 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
make -C build -j $(nproc)
sudo make -C build install
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
5. Update system library path:
2024-05-02 20:02:30 -07:00
2025-05-05 23:38:33 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
export RDC_LIB_DIR=/opt/rocm/lib/rdc
export GRPC_LIB_DIR="/opt/grpc/lib"
echo "${RDC_LIB_DIR}" | sudo tee /etc/ld.so.conf.d/x86_64-librdc_client.conf
echo "${GRPC_LIB_DIR}" | sudo tee -a /etc/ld.so.conf.d/x86_64-librdc_client.conf
sudo ldconfig
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
Installing RDC using prebuilt packages
=======================================
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
RDC is packaged as part of the ROCm software repository. To install RDC using prebuilt package, first :doc:`install the AMD ROCm software <rocm-install-on-linux:index>`, then use the following instructions:
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. tab-set::
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. tab-item:: Ubuntu
:sync: ubuntu-tab
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
$ sudo apt-get install rdc
# or, to install a specific version
$ sudo apt-get install rdc<x.y.z>
2024-05-02 20:02:30 -07:00
2025-09-17 12:18:04 -05:00
.. tab-item:: SLES
2025-02-12 21:07:30 +05:30
:sync: sles-tab
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
.. code-block:: shell
2024-05-02 20:02:30 -07:00
2025-02-12 21:07:30 +05:30
$ sudo zypper install rdc
# or, to install a specific version
$ sudo zypper install rdc<x.y.z>