diff --git a/pytorch.dockerfile b/pytorch.dockerfile new file mode 100644 index 0000000..78e60af --- /dev/null +++ b/pytorch.dockerfile @@ -0,0 +1,30 @@ +ARG ROCM_VERSION="5.7.3" + +FROM wtongze/rocm-base:${ROCM_VERSION} + +ARG PYTORCH_BRANCH="v2.4.1" +ARG PYTHON_VERSION="3.11" +ARG HIP_ARCH="gfx803;gfx900" +ARG DEBIAN_FRONTEND="noninteractive" + +# Add GPU target +RUN echo "${HIP_ARCH}" | sed 's/;/\n/g' | sudo tee /opt/rocm/bin/target.lst + +WORKDIR /home/rocm +RUN git clone --depth 1 https://github.com/pytorch/pytorch.git -b ${PYTORCH_BRANCH} pytorch +WORKDIR /home/rocm/pytorch +RUN git submodule update --init --recursive + +RUN <