From 38442c0dafe37c95ca258ebe496964b93a1c0af5 Mon Sep 17 00:00:00 2001 From: coleramos425 Date: Fri, 14 Apr 2023 11:32:57 -0500 Subject: [PATCH] Add containers for each supported Linux distro Signed-off-by: coleramos425 [ROCm/rocprofiler-compute commit: f6d92331137fc6a2646af4e55931c25414a0a37c] --- .../rocprofiler-compute/docker/rhel8/Dockerfile | 14 ++++++++++++++ .../rocprofiler-compute/docker/rhel8/rocm.repo | 13 +++++++++++++ .../docker/sle15sp3/Dockerfile | 12 ++++++++++++ .../docker/sle15sp3/amdgpu.repo | 13 +++++++++++++ .../docker/ubuntu20.04/Dockerfile | 15 +++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 projects/rocprofiler-compute/docker/rhel8/Dockerfile create mode 100644 projects/rocprofiler-compute/docker/rhel8/rocm.repo create mode 100644 projects/rocprofiler-compute/docker/sle15sp3/Dockerfile create mode 100644 projects/rocprofiler-compute/docker/sle15sp3/amdgpu.repo create mode 100644 projects/rocprofiler-compute/docker/ubuntu20.04/Dockerfile diff --git a/projects/rocprofiler-compute/docker/rhel8/Dockerfile b/projects/rocprofiler-compute/docker/rhel8/Dockerfile new file mode 100644 index 0000000000..70afcb13cb --- /dev/null +++ b/projects/rocprofiler-compute/docker/rhel8/Dockerfile @@ -0,0 +1,14 @@ +FROM --platform=linux/amd64 rockylinux:8 + +RUN yum -y install epel-release +RUN yum -y install dnf-plugins-core +RUN yum -y install cmake +RUN yum -y install gcc-c++ +RUN yum -y install python39 + +# Enable rocm package repo +COPY rocm.repo /etc/yum.repos.d +RUN yum config-manager --set-enabled powertools + +# Desired ROCm packages +RUN yum -y install rocm-dev5.1.3 \ No newline at end of file diff --git a/projects/rocprofiler-compute/docker/rhel8/rocm.repo b/projects/rocprofiler-compute/docker/rhel8/rocm.repo new file mode 100644 index 0000000000..17171d755d --- /dev/null +++ b/projects/rocprofiler-compute/docker/rhel8/rocm.repo @@ -0,0 +1,13 @@ +[ROCm-5.1.3] +name=ROCm5.1.3 +baseurl=https://repo.radeon.com/rocm/centos8/5.1.3/main +enabled=1 +gpgcheck=1 +gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key + +[amdgpu] +name=amdgpu +baseurl=https://repo.radeon.com/amdgpu/latest/rhel/8.5/main/x86_64 +enabled=1 +gpgcheck=1 +gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key \ No newline at end of file diff --git a/projects/rocprofiler-compute/docker/sle15sp3/Dockerfile b/projects/rocprofiler-compute/docker/sle15sp3/Dockerfile new file mode 100644 index 0000000000..a4e430052e --- /dev/null +++ b/projects/rocprofiler-compute/docker/sle15sp3/Dockerfile @@ -0,0 +1,12 @@ +FROM --platform=linux/amd64 registry.suse.com/suse/sle15:15.3 + +RUN zypper -n --gpg-auto-import-keys addrepo https://download.opensuse.org/repositories/devel:/languages:/perl/SLE_15_SP3/devel:languages:perl.repo + +COPY amdgpu.repo /etc/zypp/repos.d/amdgpu.repo + +RUN zypper -n --gpg-auto-import-keys install rocm-dev5.1.3 + +RUN zypper -n install gcc-c++ && \ + zypper -n install make && \ + zypper -n install git + \ No newline at end of file diff --git a/projects/rocprofiler-compute/docker/sle15sp3/amdgpu.repo b/projects/rocprofiler-compute/docker/sle15sp3/amdgpu.repo new file mode 100644 index 0000000000..88eadf65c6 --- /dev/null +++ b/projects/rocprofiler-compute/docker/sle15sp3/amdgpu.repo @@ -0,0 +1,13 @@ +[ROCm-5.1.3] +name=ROCm5.1.3 +baseurl=https://repo.radeon.com/rocm/zyp/5.1.3/main +enabled=1 +gpgcheck=0 +gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key + +[amdgpu] +name=amdgpu +baseurl=https://repo.radeon.com/amdgpu/latest/sle/15.3/main/x86_64 +enabled=1 +gpgcheck=0 +gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key \ No newline at end of file diff --git a/projects/rocprofiler-compute/docker/ubuntu20.04/Dockerfile b/projects/rocprofiler-compute/docker/ubuntu20.04/Dockerfile new file mode 100644 index 0000000000..8e2582d9e4 --- /dev/null +++ b/projects/rocprofiler-compute/docker/ubuntu20.04/Dockerfile @@ -0,0 +1,15 @@ +FROM --platform=linux/amd64 ubuntu:20.04 +WORKDIR /home + +USER root + +ENV DEBIAN_FRONTEND noninteractive +ENV TZ "US/Chicago" + +RUN apt-get update +RUN apt-get install -y wget +RUN wget https://repo.radeon.com/amdgpu-install/5.3/ubuntu/focal/amdgpu-install_5.3.50300-1_all.deb +RUN apt-get install -y ./amdgpu-install_5.3.50300-1_all.deb +RUN amdgpu-install --usecase=rocm -y --accept-eula + +RUN apt-get install -y build-essential \ No newline at end of file