diff --git a/.github/workflows/rocprofiler-systems-ghcr.yml b/.github/workflows/rocprofiler-systems-ghcr.yml index e7b739e59d..d1053ec87e 100644 --- a/.github/workflows/rocprofiler-systems-ghcr.yml +++ b/.github/workflows/rocprofiler-systems-ghcr.yml @@ -1,4 +1,4 @@ -name: Publish GHCR Packages for rocprofiler-systems CI Images +name: rocprofiler-systems GHCR Packages for CI Images on: workflow_dispatch: @@ -100,7 +100,7 @@ jobs: id: meta uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.7.9 with: - images: ghcr.io/ROCm/rocprofiler-${{ matrix.system.distro }}-${{ matrix.system.version }} + images: ghcr.io/ROCm/rocprofiler-${{ matrix.system.distro }} - name: Build CI GFX Container (Does not Push on PR) uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 @@ -118,5 +118,5 @@ jobs: ELFUTILS_DOWNLOAD_VERSION=0.188 BOOST_DOWNLOAD_VERSION=1.79.0 tags: | - ghcr.io/rocm/rocprofiler-${{ matrix.system.distro }}-${{ matrix.system.version }}:systems-ci-${{ matrix.gpu }} + ghcr.io/rocm/rocprofiler-${{ matrix.system.distro }}:${{ matrix.system.version }}-systems-ci-${{ matrix.gpu }} labels: ${{ steps.meta.outputs.labels }} diff --git a/README.md b/README.md index 55c0ad1b3a..d98e4868c2 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This table provides the current status of the migration of specific ROCm systems | `rocprofiler-compute` | Public | Completed | | [![Formatting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-formatting.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-formatting.yml)
[![ rhel-8](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-rhel-8.yml/badge.svg)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-rhel-8.yml)
[![tarball](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-tarball.yml/badge.svg)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-tarball.yml)
[![ubuntu jammy](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-ubuntu-jammy.yml/badge.svg)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-ubuntu-jammy.yml) | | `rocprofiler-register` | Public | Completed | [![Azure Pipelines](https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/build/status%2Fmonorepo%2Frocprofiler-register?repoName=ROCm%2Frocm-systems&branchName=develop)](https://dev.azure.com/ROCm-CI/ROCm-CI/_build/latest?definitionId=327&repoName=ROCm%2Frocm-systems&branchName=develop) | [![Continuous Integration](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-register-continuous-integration.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-register-continuous-integration.yml) | | `rocprofiler-sdk` | Public | Completed | | [![Code Coverage Integration](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-code_coverage.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-code_coverage.yml)
[![CodeQL](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-codeql.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-codeql.yml)
[![Continuous Integration](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-continuous_integration.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-continuous_integration.yml)
[![Documentation](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-docs.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-docs.yml)
[![Formatting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-formatting.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-formatting.yml)
[![Python Linting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-python.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-python.yml)
[![Restrictions](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-restrictions.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-restrictions.yml)
[![Release Compatibility](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-rocm_release_compatibility.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-rocm_release_compatibility.yml) | -| `rocprofiler-systems` | Public | Completed | | [![Containers](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-containers.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-containers.yml)
[![CPack](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-cpack.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-cpack.yml)
[![Formatting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-formatting.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-formatting.yml)
[![OpenSUSE](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-opensuse.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-opensuse.yml)
[![Python Linting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-python.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-python.yml)
[![RedHat Linux](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-redhat.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-redhat.yml)
[![Ubuntu Jammy](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-jammy.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-jammy.yml)
[![Ubuntu Noble](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-noble.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-noble.yml) | +| `rocprofiler-systems` | Public | Completed | | [![Containers](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-containers.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-containers.yml)
[![rocprofiler-systems GHCR Packages for CI Images](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ghcr.yml/badge.svg)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ghcr.yml)
[![CPack](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-cpack.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-cpack.yml)
[![Formatting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-formatting.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-formatting.yml)
[![OpenSUSE](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-opensuse.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-opensuse.yml)
[![Python Linting](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-python.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-python.yml)
[![RedHat Linux](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-redhat.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-redhat.yml)
[![Ubuntu Jammy](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-jammy.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-jammy.yml)
[![Ubuntu Noble](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-noble.yml/badge.svg?branch=develop)](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-noble.yml) | | `rocr-runtime` | Public | Completed | | | | `roctracer` | Public | Completed | | | diff --git a/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci b/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci index d976e2ce51..afbf295e6d 100644 --- a/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci +++ b/projects/rocprofiler-systems/docker/Dockerfile.opensuse.ci @@ -2,15 +2,15 @@ ARG DISTRO=opensuse/leap ARG VERSION=15.5 FROM ${DISTRO}:${VERSION} -ENV HOME /root -ENV SHELL /bin/bash -ENV BASH_ENV /etc/bash.bashrc -ENV DEBIAN_FRONTEND noninteractive +ENV HOME=/root +ENV SHELL=/bin/bash +ENV BASH_ENV=/etc/bash.bashrc +ENV DEBIAN_FRONTEND=noninteractive WORKDIR /tmp SHELL [ "/bin/bash", "-c" ] -ENV PATH /usr/local/bin:${PATH} +ENV PATH=/usr/local/bin:${PATH} ARG EXTRA_PACKAGES="" ARG ELFUTILS_DOWNLOAD_VERSION="0.188" @@ -51,9 +51,14 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif ARG GPU_TYPE="" ARG GPU_TARBALL="" RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \ + VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \ + if [ -z "$VERSION" ]; then \ + echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \ + exit 1; \ + fi; \ python3 -m pip install -U awscli; \ - aws s3 cp "s3://therock-nightly-tarball/${GPU_TARBALL}" rocm-${GPU_TYPE}.tar.gz --no-sign-request; \ - mv rocm-${GPU_TYPE}.tar.gz /opt/rocm-${GPU_TYPE}.tar.gz; \ + aws s3 cp "s3://therock-nightly-tarball/${GPU_TARBALL}" rocm-${VERSION}-${GPU_TYPE}.tar.gz --no-sign-request; \ + mv rocm-${VERSION}-${GPU_TYPE}.tar.gz /opt/rocm-${VERSION}-${GPU_TYPE}.tar.gz; \ fi WORKDIR /home diff --git a/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci b/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci index 859e20f4b1..1fd3566ab5 100644 --- a/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci +++ b/projects/rocprofiler-systems/docker/Dockerfile.rhel.ci @@ -2,15 +2,15 @@ ARG DISTRO=rockylinux/rockylinux ARG VERSION=8 FROM ${DISTRO}:${VERSION} -ENV HOME /root -ENV SHELL /bin/bash -ENV BASH_ENV /etc/bash.bashrc -ENV DEBIAN_FRONTEND noninteractive +ENV HOME=/root +ENV SHELL=/bin/bash +ENV BASH_ENV=/etc/bash.bashrc +ENV DEBIAN_FRONTEND=noninteractive WORKDIR /tmp SHELL [ "/bin/bash", "-c" ] -ENV PATH /usr/lib64/openmpi/bin:/usr/local/bin:${PATH} +ENV PATH=/usr/lib64/openmpi/bin:/usr/local/bin:${PATH} ARG EXTRA_PACKAGES="" ARG ELFUTILS_DOWNLOAD_VERSION="0.188" @@ -42,9 +42,14 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif ARG GPU_TYPE="" ARG GPU_TARBALL="" RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \ + VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \ + if [ -z "$VERSION" ]; then \ + echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \ + exit 1; \ + fi; \ python3 -m pip install -U awscli; \ - aws s3 cp "s3://therock-nightly-tarball/${GPU_TARBALL}" rocm-${GPU_TYPE}.tar.gz --no-sign-request; \ - mv rocm-${GPU_TYPE}.tar.gz /opt/rocm-${GPU_TYPE}.tar.gz; \ + aws s3 cp "s3://therock-nightly-tarball/${GPU_TARBALL}" rocm-${VERSION}-${GPU_TYPE}.tar.gz --no-sign-request; \ + mv rocm-${VERSION}-${GPU_TYPE}.tar.gz /opt/rocm-${VERSION}-${GPU_TYPE}.tar.gz; \ fi WORKDIR /home diff --git a/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci b/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci index 8f95bd3544..33f062ca5b 100644 --- a/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci +++ b/projects/rocprofiler-systems/docker/Dockerfile.ubuntu.ci @@ -1,5 +1,5 @@ -ARG DISTRO -ARG VERSION +ARG DISTRO=ubuntu +ARG VERSION=22.04 FROM ${DISTRO}:${VERSION} ENV HOME=/root @@ -17,9 +17,9 @@ ARG BOOST_DOWNLOAD_VERSION="1.79.0" ARG NJOBS="8" ENV PATH="/usr/local/bin:${PATH}" -ENV LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:${LIBRARY_PATH}" -ENV LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:${LD_LIBRARY_PATH}" -ENV CMAKE_PREFIX_PATH="/usr/local:${CMAKE_PREFIX_PATH}" +ENV LIBRARY_PATH="/usr/local/lib:/usr/local/lib64" +ENV LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64" +ENV CMAKE_PREFIX_PATH="/usr/local" RUN apt-get update && \ apt-get dist-upgrade -y && \ @@ -55,10 +55,15 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif ARG GPU_TYPE="" ARG GPU_TARBALL="" RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \ + VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \ + if [ -z "$VERSION" ]; then \ + echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \ + exit 1; \ + fi; \ pip install --upgrade pip; \ pip install awscli --break-system-packages; \ - aws s3 cp "s3://therock-nightly-tarball/${GPU_TARBALL}" rocm-${GPU_TYPE}.tar.gz --no-sign-request; \ - mv rocm-${GPU_TYPE}.tar.gz /opt/rocm-${GPU_TYPE}.tar.gz; \ + aws s3 cp "s3://therock-nightly-tarball/${GPU_TARBALL}" rocm-${VERSION}-${GPU_TYPE}.tar.gz --no-sign-request; \ + mv rocm-${VERSION}-${GPU_TYPE}.tar.gz /opt/rocm-${VERSION}-${GPU_TYPE}.tar.gz; \ fi ENV LC_ALL=C.UTF-8