@@ -2,7 +2,7 @@ ARG BASE_IMAGE=registry-sc-harbor.amd.com/framework/compute-rocm-dkms-component-
2
2
# ARG HIPBLASLT_BRANCH="aa0bda7b"
3
3
# ARG HIPBLAS_COMMON_BRANCH="9b80ba8e"
4
4
# ARG LEGACY_HIPBLASLT_OPTION=
5
- ARG TRITON_BRANCH="shared/oai-oss-bf16mx4-moe-launch "
5
+ ARG TRITON_BRANCH="pytorch/rocm7.1_internal_testing "
6
6
ARG TRITON_REPO="https://github.com/ROCm/triton.git"
7
7
ARG PYTORCH_BRANCH="triton_kernel_wrap_fix"
8
8
ARG PYTORCH_VISION_BRANCH="5dc9e7de"
@@ -62,16 +62,16 @@ RUN pip install -U packaging 'cmake<4' ninja wheel 'setuptools<80' pybind11 Cyth
62
62
# && make package
63
63
# RUN mkdir -p /app/install && cp /app/hipBLASLt/build/release/*.deb /app/hipBLAS-common/build/*.deb /app/install
64
64
65
- # FROM base AS build_triton
66
- # ARG TRITON_BRANCH
67
- # ARG TRITON_REPO
68
- # RUN git clone ${TRITON_REPO}
69
- # RUN cd triton \
70
- # && git checkout ${TRITON_BRANCH} \
71
- # && python3 setup.py bdist_wheel --dist-dir=python/dist
72
- # RUN pip install build && cd triton/python/triton_kernels \
73
- # && python3 -m build --wheel && cp dist/*.whl /app/triton/python/dist
74
- # RUN mkdir -p /app/install && cp /app/triton/python/dist/*.whl /app/install
65
+ FROM base AS build_triton
66
+ ARG TRITON_BRANCH
67
+ ARG TRITON_REPO
68
+ RUN git clone ${TRITON_REPO}
69
+ RUN cd triton \
70
+ && git checkout ${TRITON_BRANCH} \
71
+ && python3 setup.py bdist_wheel --dist-dir=python/dist
72
+ RUN pip install build && cd triton/python/triton_kernels \
73
+ && python3 -m build --wheel && cp dist/*.whl /app/triton/python/dist
74
+ RUN mkdir -p /app/install && cp /app/triton/python/dist/*.whl /app/install
75
75
76
76
FROM base AS build_amdsmi
77
77
RUN cd /opt/rocm/share/amd_smi \
@@ -123,8 +123,8 @@ FROM base AS debs
123
123
RUN mkdir /app/debs
124
124
# RUN --mount=type=bind,from=build_hipblaslt,src=/app/install/,target=/install \
125
125
# cp /install/*.deb /app/debs
126
- # RUN --mount=type=bind,from=build_triton,src=/app/install/,target=/install \
127
- # cp /install/*.whl /app/debs
126
+ RUN --mount=type=bind,from=build_triton,src=/app/install/,target=/install \
127
+ cp /install/*.whl /app/debs
128
128
RUN --mount=type=bind,from=build_amdsmi,src=/app/install/,target=/install \
129
129
cp /install/*.whl /app/debs
130
130
RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
@@ -138,8 +138,8 @@ FROM base AS final
138
138
# && perl -p -i -e 's/, hipblas-common-dev \([^)]*?\), /, /g' /var/lib/dpkg/status \
139
139
# && perl -p -i -e 's/, hipblaslt-dev \([^)]*?\), /, /g' /var/lib/dpkg/status \
140
140
# && perl -p -i -e 's/, hipblaslt \([^)]*?\), /, /g' /var/lib/dpkg/status
141
- # RUN --mount=type=bind,from=build_triton,src=/app/install/,target=/install \
142
- # pip install /install/*.whl
141
+ RUN --mount=type=bind,from=build_triton,src=/app/install/,target=/install \
142
+ pip install /install/*.whl
143
143
RUN --mount=type=bind,from=build_amdsmi,src=/app/install/,target=/install \
144
144
pip install /install/*.whl
145
145
RUN --mount=type=bind,from=build_pytorch,src=/app/install/,target=/install \
0 commit comments