git-subtree-dir: projects/rdc git-subtree-mainline:a68afa42a1git-subtree-split:5ae7eeb355
Setup Instructions for AMDSMI and RDC Images
Follow these steps to set up both the AMDSMI and RDC images.
Prerequisites
Ensure you have the necessary permissions and tools installed to clone repositories and build Docker images.
Step 1: Clone Repositories
Download the latest AMDSMI and RDC repositories using the following commands:
AMDSMI
git clone https://github.com/ROCm/amdsmi.git
RDC
git clone https://github.com/ROCm/rdc.git
Step 2: Build AMDSMI Base Image
-
Navigate to the
amdsmidirectory on your system. -
Build the Docker image using the following command:
docker build -t amdsmi-image .
Step 3: Build RDC Image
-
Navigate to the
rdcdirectory on your system. -
Navigate into the
/Dockerdirectory. -
Build the Docker image using the following command:
docker build -t rdc-image .
Step 4: Run RDC Image
To run the RDC image, use the following command:
docker run rdc-image
If the above command does not work, try the following:
-
Run the image with a bash entry point:
docker run -it --entrypoint /bin/bash rdc-image -
Once inside the container, run the following command:
sudo /opt/rocm/bin/rdcd -u
Step 5: Run AMDSMI Image (optional)
To be able to run AMDSMI commands inside of the image run the following:
sudo docker run --rm -ti \
--privileged \
--volume $(realpath ./):/src:rw \
amdsmi-image
Important
Make sure that you are in the
amdsmidirectory before running.