Files

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

70 خطوط
1.7 KiB
ReStructuredText

2024-05-02 20:02:30 -07:00
.. meta::
2025-02-12 21:07:30 +05:30
:description: documentation of the installation, configuration, and use of the ROCm Data Center tool
2024-05-02 20:02:30 -07:00
:keywords: ROCm Data Center tool, RDC, ROCm, API, reference, data type, support
.. _rdc-handbook:
***************************************************
2024-05-08 15:14:13 -07:00
Building and testing RDC
2024-05-02 20:02:30 -07:00
***************************************************
2024-05-08 15:14:13 -07:00
RDC is open source and available under the MIT License. This section is helpful for open source developers. Third-party integrators may also find this information useful.
2024-05-02 20:02:30 -07:00
Build and Install RDC
=====================
To build and install, clone the RDC source code from GitHub and use CMake.
.. code-block:: shell
2025-02-12 21:07:30 +05:30
$ git clone 'https://github.com/ROCm/rocm-systems' --recursive
$ cd rocm-systems/projects/rdc
2024-05-02 20:02:30 -07:00
$ mkdir -p build; cd build
$ cmake -DROCM_DIR=/opt/rocm -DGRPC_ROOT="$GRPC_PROTOC_ROOT"..
$ make
#Install library file and header and the default location is /opt/rocm
$ make install
2025-02-12 21:07:30 +05:30
2024-05-02 20:02:30 -07:00
Build Documentation
-------------------
You can generate PDF documentation after a successful build. The reference manual, refman.pdf, appears in the latex directory.
.. code-block:: shell
2025-02-12 21:07:30 +05:30
2024-05-02 20:02:30 -07:00
$ make doc
$ cd latex
$ make
Build Unit Tests for RDC Tool
-----------------------------
.. code-block:: shell
2025-02-12 21:07:30 +05:30
$ cd rocm-systems/projects/rdc/tests/rdc_tests
2024-05-02 20:02:30 -07:00
$ mkdir -p build; cd build
$ cmake -DROCM_DIR=/opt/rocm -DGRPC_ROOT="$GRPC_PROTOC_ROOT"..
$ make
# To run the tests
2025-02-12 21:07:30 +05:30
2024-05-02 20:02:30 -07:00
$ cd build/rdctst_tests
$ ./rdctst
2025-02-12 21:07:30 +05:30
2024-05-02 20:02:30 -07:00
Test
----
.. code-block:: shell
2025-02-12 21:07:30 +05:30
2024-05-02 20:02:30 -07:00
# Run rdcd daemon
$ LD_LIBRARY_PATH=$PWD/rdc_libs/ ./server/rdcd -u
2025-02-12 21:07:30 +05:30
2024-05-02 20:02:30 -07:00
# In another console run the RDC command-line
$ LD_LIBRARY_PATH=$PWD/rdc_libs/ ./rdci/rdci discovery -l -u