This is an automated email from the ASF dual-hosted git repository.
junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 4cee61a Add PaddlePaddle dependency in docker file (#8742)
4cee61a is described below
commit 4cee61a563980239fb4ef7a8548e09424b0cd3e1
Author: Jason <[email protected]>
AuthorDate: Wed Aug 18 05:25:39 2021 +0800
Add PaddlePaddle dependency in docker file (#8742)
---
docker/Dockerfile.ci_cpu | 4 ++++
docker/Dockerfile.ci_gpu | 3 +++
docker/install/ubuntu_install_paddle.sh | 23 +++++++++++++++++++++++
3 files changed, 30 insertions(+)
diff --git a/docker/Dockerfile.ci_cpu b/docker/Dockerfile.ci_cpu
index d692a13..a1c9973 100644
--- a/docker/Dockerfile.ci_cpu
+++ b/docker/Dockerfile.ci_cpu
@@ -122,3 +122,7 @@ RUN bash /install/ubuntu_install_vela.sh
# Update PATH
ENV PATH /opt/arm/gcc-arm-none-eabi/bin:$PATH
+
+# PaddlePaddle deps
+COPY install/ubuntu_install_paddle.sh /install/ubuntu_install_paddle.sh
+RUN bash /install/ubuntu_install_paddle.sh
diff --git a/docker/Dockerfile.ci_gpu b/docker/Dockerfile.ci_gpu
index a76cf46..1eb13ea 100644
--- a/docker/Dockerfile.ci_gpu
+++ b/docker/Dockerfile.ci_gpu
@@ -86,6 +86,9 @@ RUN bash /install/ubuntu_install_dgl.sh
COPY install/ubuntu_install_vulkan.sh /install/ubuntu_install_vulkan.sh
RUN bash /install/ubuntu_install_vulkan.sh
+COPY install/ubuntu_install_paddle.sh /install/ubuntu_install_paddle.sh
+RUN bash /install/ubuntu_install_paddle.sh
+
# Rust env (build early; takes a while)
COPY install/ubuntu_install_rust.sh /install/ubuntu_install_rust.sh
RUN bash /install/ubuntu_install_rust.sh
diff --git a/docker/install/ubuntu_install_paddle.sh
b/docker/install/ubuntu_install_paddle.sh
new file mode 100644
index 0000000..267d591
--- /dev/null
+++ b/docker/install/ubuntu_install_paddle.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -e
+set -u
+set -o pipefail
+
+pip install paddlepaddle==2.1.2