CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
48 lines
2.0 KiB
Docker
48 lines
2.0 KiB
Docker
# Copyright (c) Advanced Micro Devices, Inc.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
FROM ubuntu:20.04
|
|
|
|
USER root
|
|
|
|
COPY rocm_install.sh /rocprofiler-compute/rocm_install.sh
|
|
|
|
ENV PATH="/rocprofiler-compute:${PATH}"
|
|
ENV TZ="US/Chicago"
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
#pyenv dependencies
|
|
RUN apt update && \
|
|
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
|
|
ENV HOME="/rocprofiler-compute"
|
|
WORKDIR $HOME
|
|
ENV PYENV_ROOT="$HOME/.pyenv"
|
|
ENV PATH="$PYENV_ROOT/bin:$PATH"
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
|
|
apt update && \
|
|
apt-get install -y cmake wget git python3-dev rpm python3-venv software-properties-common &&\
|
|
add-apt-repository ppa:deadsnakes/ppa -y &&\
|
|
apt install python3.7 -y libpython3.7-dev python3.7-venv libnuma-dev &&\
|
|
curl https://pyenv.run | bash
|
|
|
|
RUN echo "export PATH=$HOME/.pyenv/bin:$PATH" >> ~/.bashrc &&\
|
|
echo eval "$(pyenv init -)" >> ~/.bashrc &&\
|
|
echo eval "$(pyenv virtualenv-init -)" >> ~/.bashrc &&\
|
|
CPPFLAGS=-I/usr/bin/openssl \
|
|
LDFLAGS=-L/usr/lib64 \
|
|
CONFIGURE_OPTS=--enable-shared pyenv install -v 3.8.12 &&\
|
|
pyenv global 3.8.12 &&\
|
|
apt-get install -y python3-pip
|
|
#clang?
|
|
|
|
RUN python3 -m pip install astunparse==1.6.2 dash numpy pandas pyyaml tabulate dash-svg pyinstaller dash-bootstrap-components &&\
|
|
python3 -m pip install 'cmake==3.21.4' && \
|
|
./rocm_install.sh &&\
|
|
#wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - && \
|
|
#echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${ROCM_REPO_VERSION}/ ${ROCM_REPO_DIST} main" | tee /etc/apt/sources.list.d/rocm.list && \
|
|
apt-get update && \
|
|
apt-get dist-upgrade -y && \
|
|
#apt-get install -y rocm-dev rocm-utils rocm-smi-lib roctracer-dev rocprofiler-dev rccl-dev hip-base hsa-amd-aqlprofile hsa-rocr-dev hsakmt-roct-dev ${EXTRA_PACKAGES} && \
|
|
apt-get autoclean
|