Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TVM to testing dockerfile #1480

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docker/testing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM oasislabs/development:0.2.0

RUN apt-get install -y \
unzip jq \
binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev \
llvm-7 python3-pip

# Install Docker client for building testnet images.
RUN VER="18.03.0-ce" && \
Expand Down Expand Up @@ -40,3 +41,12 @@ RUN RUSTFLAGS="--cfg procmacro2_semver_exempt" \
--git https://github.com/oasislabs/tarpaulin \
--branch oasis \
cargo-tarpaulin

# Install TVM
RUN git clone --recursive https://github.com/dmlc/tvm.git /tmp/tvm && \
cd /tmp/tvm && \
git checkout f6be4d6 && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jroesch authored and tqchen committed 4 hours ago

🔥

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only because I'm about to merge apache/tvm#2616 soon, which might break things

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, the 0.5 release is stalled apache/tvm#2614

mkdir build && cd build && \
cmake .. -DUSE_LLVM=ON && \
make -j4 && cd ../nnvm && make -j4 && cd .. && \
pip3 install -e python -e nnvm/python -e topi/python