File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -23,5 +23,10 @@ conda create --name "${CONDA_ENV}" -y --clone "${BASE_CONDA_ENV}"
23
23
conda activate " ${CONDA_ENV} "
24
24
25
25
. " ${SETUP_SCRIPT} "
26
- # Install the nightly openai/triton
27
- pip install -U --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/Triton-Nightly/pypi/simple/ triton-nightly
26
+
27
+ # Install and build triton from source code
28
+ cd /workspace
29
+ git clone https://github.com/triton-lang/triton.git
30
+ cd /workspace/triton
31
+ pip install ninja cmake wheel pybind11; # build-time dependencies
32
+ pip install -e python
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ ARG BASE_IMAGE=xzhao9/gcp-a100-runner-dind:latest
3
3
4
4
FROM ${BASE_IMAGE}
5
5
6
- ENV CONDA_ENV=tritonbench
6
+ ENV CONDA_ENV=pytorch
7
+ ENV CONDA_ENV_TRITON_MAIN=triton-main
7
8
ENV SETUP_SCRIPT=/workspace/setup_instance.sh
8
9
ARG TRITONBENCH_BRANCH=${TRITONBENCH_BRANCH:-main}
9
10
ARG FORCE_DATE=${FORCE_DATE}
@@ -49,9 +50,14 @@ RUN sudo apt update && sudo apt-get install -y libnvidia-compute-550 patchelf
49
50
RUN cd /workspace/tritonbench && \
50
51
bash .ci/tritonbench/install.sh
51
52
53
+
52
54
# Test Tritonbench
53
55
RUN cd /workspace/tritonbench && \
54
56
bash .ci/tritonbench/test-install.sh
55
57
56
58
# Remove NVIDIA driver library - they are supposed to be mapped at runtime
57
59
RUN sudo apt-get purge -y libnvidia-compute-550
60
+
61
+ # Clone the pytorch env as triton-main env, then compile triton main from source
62
+ RUN cd /workspace/tritonbench && \
63
+ BASE_CONDA_ENV=${CONDA_ENV} CONDA_ENV=${CONDA_ENV_TRITON_MAIN} bash .ci/tritonbench/install-triton-main.sh
You can’t perform that action at this time.
0 commit comments