1- ARG BASE_IMAGE=rocm/dev-ubuntu-22.04:6.3-complete
1+ ARG BASE_IMAGE=rocm/dev-ubuntu-22.04:6.3.1 -complete
22ARG HIPBLASLT_BRANCH="4d40e36"
3+ ARG HIPBLAS_COMMON_BRANCH="7c1566b"
34ARG LEGACY_HIPBLASLT_OPTION=
45ARG RCCL_BRANCH="648a58d"
56ARG RCCL_REPO="https://github.com/ROCm/rccl"
@@ -43,15 +44,24 @@ RUN pip install -U packaging cmake ninja wheel setuptools pybind11 Cython
4344
4445FROM base AS build_hipblaslt
4546ARG HIPBLASLT_BRANCH
47+ ARG HIPBLAS_COMMON_BRANCH
4648# Set to "--legacy_hipblas_direct" for ROCm<=6.2
4749ARG LEGACY_HIPBLASLT_OPTION
50+ RUN git clone https://github.com/ROCm/hipBLAS-common.git
51+ RUN cd hipBLAS-common \
52+ && git checkout ${HIPBLAS_COMMON_BRANCH} \
53+ && mkdir build \
54+ && cd build \
55+ && cmake .. \
56+ && make package \
57+ && dpkg -i ./*.deb
4858RUN git clone https://github.com/ROCm/hipBLASLt
4959RUN cd hipBLASLt \
5060 && git checkout ${HIPBLASLT_BRANCH} \
5161 && ./install.sh -d --architecture ${PYTORCH_ROCM_ARCH} ${LEGACY_HIPBLASLT_OPTION} \
5262 && cd build/release \
5363 && make package
54- RUN mkdir -p /app/install && cp /app/hipBLASLt/build/release/*.deb /app/install
64+ RUN mkdir -p /app/install && cp /app/hipBLASLt/build/release/*.deb /app/hipBLAS-common/build/*.deb /app/ install
5565
5666FROM base AS build_rccl
5767ARG RCCL_BRANCH
@@ -133,6 +143,7 @@ ARG PYTORCH_VISION_REPO
133143ARG FA_BRANCH
134144ARG FA_REPO
135145RUN echo "BASE_IMAGE: ${BASE_IMAGE}" > /app/versions.txt \
146+ && echo "HIPBLAS_COMMON_BRANCH: ${HIPBLAS_COMMON_BRANCH}" >> /app/versions.txt \
136147 && echo "HIPBLASLT_BRANCH: ${HIPBLASLT_BRANCH}" >> /app/versions.txt \
137148 && echo "LEGACY_HIPBLASLT_OPTION: ${LEGACY_HIPBLASLT_OPTION}" >> /app/versions.txt \
138149 && echo "RCCL_BRANCH: ${RCCL_BRANCH}" >> /app/versions.txt \
@@ -144,4 +155,4 @@ RUN echo "BASE_IMAGE: ${BASE_IMAGE}" > /app/versions.txt \
144155 && echo "PYTORCH_REPO: ${PYTORCH_REPO}" >> /app/versions.txt \
145156 && echo "PYTORCH_VISION_REPO: ${PYTORCH_VISION_REPO}" >> /app/versions.txt \
146157 && echo "FA_BRANCH: ${FA_BRANCH}" >> /app/versions.txt \
147- && echo "FA_REPO: ${FA_REPO}" >> /app/versions.txt
158+ && echo "FA_REPO: ${FA_REPO}" >> /app/versions.txt
0 commit comments