ROCm-docker/dev/Dockerfile-ubuntu-22.04
Marco Minutoli 7314a9d7c9 Add missing libraries in Ubuntu containers.
Using the rocm/dev-ubuntu-24.04:latest container I noticed that we couldn't run
rocprofv3, roc-obj-ls, and roc-obj-extract because of missing dependencies.
rocprofv3 requires libdw1. roc-obj-ls and roc-obj-extract require
libfile-which-perl and liburi-perl.

This patch fixes the issue adding these dependencies to the ubuntu Dockerfiles.
2025-10-07 23:32:41 +00:00

33 lines
1.2 KiB
Plaintext

# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
# installs the rocm-dev package.
FROM ubuntu:22.04
LABEL maintainer=dl.mlsedevops@amd.com
# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=6.4.1
ARG AMDGPU_VERSION=6.4.1
ARG APT_PREF
RUN echo "$APT_PREF" > /etc/apt/preferences.d/rocm-pin-600
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu jammy main" | tee /etc/apt/sources.list.d/amdgpu.list \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
sudo \
libelf1 \
libdw1 \
libfile-which-perl \
liburi-perl \
kmod \
file \
python3-dev \
python3-pip \
rocm-dev \
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g 109 render