areusch commented on a change in pull request #8311: URL: https://github.com/apache/tvm/pull/8311#discussion_r667155913
########## File path: docker/test/Dockerfile.CPU ########## @@ -0,0 +1,37 @@ +FROM ubuntu:18.04 + +ENV http_proxy $HTTP_PROXY +ENV https_proxy $HTTPS_PROXY + +# 1. Prepare dependence. +RUN apt-get update && apt-get install -y wget git vim python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev +RUN echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main\ + >> /etc/apt/sources.list.d/llvm.list +RUN echo deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main\ + >> /etc/apt/sources.list.d/llvm.list +RUN echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main\ + >> /etc/apt/sources.list.d/llvm.list +RUN echo deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic main\ + >> /etc/apt/sources.list.d/llvm.list +RUN wget -q -O - http://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - +RUN apt-get update && apt-get install -y llvm-9 clang-9 libclang-9-dev + +# 2. Install TVM +WORKDIR /workspace/ +RUN git clone --recursive https://github.com/apache/tvm tvm +WORKDIR /workspace/tvm/ +RUN mkdir build && cp cmake/config.cmake build +RUN cd build && echo set\(USE_LLVM llvm-config-9\) >> config.cmake && cmake .. && make -j4 + +# 3. Prepare Python sitpackage +RUN apt-get install -y python3-pip && pip3 install --upgrade pip +RUN pip3 install numpy scipy decorator attrs tornado psutil tensorflow pytest Review comment: i'm not sure things are going to work super well if you just install latest -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
