"docs/en_US/Release.rst" did not exist on "dbb2434f5d2d976be26b594342a68cb46619ecea"
hip-clang.docker 1.71 KB
Newer Older
1
FROM ubuntu:22.04
2
3
4
5
6
7
8

ARG PREFIX=/usr/local

# Support multiarch
RUN dpkg --add-architecture i386

# Add rocm repository
9
RUN sh -c 'echo deb [arch=amd64 trusted=yes] http://repo.radeon.com/rocm/apt/5.6/ focal main > /etc/apt/sources.list.d/rocm.list'
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# Install dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \
    apt-utils \
    build-essential \
    cmake \
    curl \
    doxygen \
    gdb \
    git \
    lcov \
    pkg-config \
    python3 \
    python3-dev \
    python3-pip \
    software-properties-common \
    wget \
    rocm-device-libs \
28
29
    hip-base \
    libnuma-dev \
30
31
32
33
34
35
36
37
    miopen-hip \
    rocblas \
    zlib1g-dev && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Workaround broken rocm packages
RUN ln -s /opt/rocm-* /opt/rocm
Paul Fultz II's avatar
Paul Fultz II committed
38
39
40
RUN echo "/opt/rocm/lib" > /etc/ld.so.conf.d/rocm.conf
RUN echo "/opt/rocm/llvm/lib" > /etc/ld.so.conf.d/rocm-llvm.conf
RUN ldconfig
41

Paul's avatar
Paul committed
42
# Workaround broken miopen cmake files
Paul's avatar
Paul committed
43
RUN sed -i 's,;/usr/lib/x86_64-linux-gnu/librt.so,,g' /opt/rocm/lib/cmake/miopen/miopen-targets.cmake
Paul's avatar
Paul committed
44

45
46
47
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

Paul Fultz II's avatar
Paul Fultz II committed
48
49
50
# Install yapf
RUN pip3 install yapf==0.28.0

51
# Install doc requirements
Chris Austen's avatar
Chris Austen committed
52
ADD docs/.sphinx/requirements.txt /doc-requirements.txt
53
54
55
56
57
RUN pip3 install -r /doc-requirements.txt

# Install dependencies
ADD dev-requirements.txt /dev-requirements.txt
ADD requirements.txt /requirements.txt
58
ADD rbuild.ini /rbuild.ini
59

60
61
62
# Temporarily install a new cmake until switching to ubuntu 22.04
RUN pip3 install cmake==3.22.1

63
64
COPY ./tools/install_prereqs.sh /
RUN /install_prereqs.sh /usr/local / && rm /install_prereqs.sh
65
66
67
68

# Install MLIR
ADD mlir-requirements.txt /mlir-requirements.txt
RUN cget -p /usr/local install -f /mlir-requirements.txt