Dockerfile.rocm 1.25 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM rocm/pytorch:rocm6.3.2_ubuntu22.04_py3.10_pytorch_release_2.4.0

WORKDIR /root

RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
  build-essential git wget \
  libgtest-dev libprotobuf-dev protobuf-compiler libgflags-dev libsqlite3-dev llvm-dev \
  && apt-get clean autoclean && rm -rf /var/lib/apt/lists/{cache,log} /tmp/* /var/tmp/*

ENV PATH="/opt/conda/bin:${PATH}"
ENV LIBGL_ALWAYS_INDIRECT=1

Zhiwen Mo's avatar
Zhiwen Mo committed
17
18
19
20

RUN conda run -n py_3.10 conda install pip cmake -y && \
    conda run -n py_3.10 conda install -c conda-forge libstdcxx-ng=12 -y && \
    conda clean --all
21
22
23

RUN apt-get install -y python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev

Zhiwen Mo's avatar
Zhiwen Mo committed
24
RUN git clone https://github.com/tile-ai/tilelang.git --recursive -b main tilelang && \
25
26
    mv /opt/conda/envs/py_3.10/compiler_compat /opt/conda/envs/py_3.10/compiler_compat.bak || true && \
    conda run -n py_3.10 bash -c "pip install 'numpy<2.0' --force-reinstall && cd tilelang && USE_ROCM=1 pip install -e . -v"
Zhiwen Mo's avatar
Zhiwen Mo committed
27

28
29
RUN conda init bash && \
    echo "conda activate py_3.10" >> /root/.bashrc
Zhiwen Mo's avatar
Zhiwen Mo committed
30
31

SHELL ["/bin/bash", "-l", "-c"]
32

33
ENTRYPOINT ["/bin/bash", "--login", "-i"]