diff --git a/docker/Dockerfile.rocm b/docker/Dockerfile.rocm index f519bb0aa..4f331cc7a 100644 --- a/docker/Dockerfile.rocm +++ b/docker/Dockerfile.rocm @@ -22,10 +22,12 @@ RUN conda run -n py_3.10 conda install pip cmake -y && \ RUN apt-get install -y python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev RUN git clone https://github.com/tile-ai/tilelang.git --recursive -b main tilelang && \ - conda run -n py_3.10 bash -c "cd tilelang && USE_ROCM=1 pip install -e . -v" + 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" -RUN conda init bash +RUN conda init bash && \ + echo "conda activate py_3.10" >> /root/.bashrc SHELL ["/bin/bash", "-l", "-c"] -CMD ["bash", "-c", "source ~/.bashrc && conda activate py_3.10 && exec bash"] \ No newline at end of file +ENTRYPOINT ["/bin/bash", "--login", "-i"] \ No newline at end of file