FROM ubuntu:18.04 ARG PREFIX=/usr/local # Support multiarch RUN dpkg --add-architecture i386 # Add rocm repository RUN sh -c 'echo deb [arch=amd64 trusted=yes] http://repo.radeon.com/rocm/apt/.apt_3.7/ xenial main > /etc/apt/sources.list.d/rocm.list' # Install dependencies RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \ apt-utils \ build-essential \ clang-format-5.0 \ cmake \ curl \ doxygen \ gdb \ git \ lcov \ pkg-config \ python \ python-dev \ python-pip \ python3 \ python3-dev \ python3-pip \ software-properties-common \ wget \ rocm-device-libs \ 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 ENV LC_ALL=C.UTF-8 ENV LANG=C.UTF-8 # Install rbuild RUN pip3 install https://github.com/RadeonOpenCompute/rbuild/archive/master.tar.gz # Install doc requirements ADD doc/requirements.txt /doc-requirements.txt RUN pip3 install -r /doc-requirements.txt # Install dependencies ADD dev-requirements.txt /dev-requirements.txt ADD requirements.txt /requirements.txt RUN rbuild prepare --cxx /opt/rocm/llvm/bin/clang++ -d $PREFIX -S / # Install rocm-cmake RUN cget -p $PREFIX install -U RadeonOpenCompute/rocm-cmake@master