File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ARG GO_VERSION=1.21-bullseye
1+ ARG GO_VERSION=1.21-bookworm
22ARG IMAGE_TYPE=extras
33# extras or core
44
5+ FROM rocm/dev-ubuntu-22.04:6.0-complete as rocm
56
67FROM golang:$GO_VERSION as requirements-core
78
@@ -40,6 +41,11 @@ RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
4041 ; fi
4142ENV PATH /usr/local/cuda/bin:${PATH}
4243
44+ # HipBLAS requirements
45+ COPY --from=rocm /opt/rocm /opt/rocm
46+ ENV PATH /opt/rocm/bin:${PATH}
47+ ENV ROCM_PATH=/opt/rocm
48+
4349# OpenBLAS requirements and stable diffusion
4450RUN apt-get install -y \
4551 libopenblas-dev \
@@ -66,7 +72,7 @@ RUN curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmo
6672 apt-get install -y conda && apt-get clean
6773
6874ENV PATH="/root/.cargo/bin:${PATH}"
69- RUN pip install --upgrade pip
75+ RUN apt-get install -y python3- pip && apt-get clean
7076RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
7177RUN apt-get install -y espeak-ng espeak && apt-get clean
7278
You can’t perform that action at this time.
0 commit comments