Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
c93b69ff
Unverified
Commit
c93b69ff
authored
Sep 27, 2019
by
Tianqi Chen
Committed by
GitHub
Sep 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOCKER] make demo images consistent with ci images when possible. (#4024)
parent
4b13bf66
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
50 deletions
+17
-50
docker/Dockerfile.ci_gpu
+1
-2
docker/Dockerfile.demo_cpu
+1
-22
docker/Dockerfile.demo_gpu
+3
-20
docker/install/install_tvm_cpu.sh
+6
-3
docker/install/install_tvm_gpu.sh
+6
-3
No files found.
docker/Dockerfile.ci_gpu
View file @
c93b69ff
...
...
@@ -16,7 +16,7 @@
# under the License.
# CI docker GPU env
# tag: v0.5
0
# tag: v0.5
4
FROM nvidia/cuda:8.0-cudnn7-devel
# Base scripts
...
...
@@ -72,7 +72,6 @@ RUN bash /install/ubuntu_install_coreml.sh
COPY install/ubuntu_install_tensorflow.sh /install/ubuntu_install_tensorflow.sh
RUN bash /install/ubuntu_install_tensorflow.sh
COPY install/ubuntu_install_darknet.sh /install/ubuntu_install_darknet.sh
RUN bash /install/ubuntu_install_darknet.sh
...
...
docker/Dockerfile.demo_cpu
View file @
c93b69ff
...
...
@@ -17,22 +17,7 @@
# Minimum docker image for demo purposes
# prebuilt-image: tvmai/demo-cpu
FROM ubuntu:16.04
RUN apt-get update --fix-missing
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh
# Python: basic dependencies
RUN apt-get update && apt-get install -y python3-dev python3-pip
RUN pip3 install numpy pytest cython decorator scipy
# LLVM
RUN echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main \
>> /etc/apt/sources.list.d/llvm.list && \
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - && \
apt-get update && apt-get install -y --force-yes llvm-6.0
FROM tvmai/ci-cpu:v0.52
# Jupyter notebook.
RUN pip3 install matplotlib Image Pillow jupyter[notebook]
...
...
@@ -40,12 +25,6 @@ RUN pip3 install matplotlib Image Pillow jupyter[notebook]
# Deep learning frameworks
RUN pip3 install mxnet tensorflow keras gluoncv dgl
# Chisel
RUN echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
RUN sudo apt-get update
RUN sudo apt-get install -y verilator sbt
# Build TVM
COPY install/install_tvm_cpu.sh /install/install_tvm_cpu.sh
RUN bash /install/install_tvm_cpu.sh
...
...
docker/Dockerfile.demo_gpu
View file @
c93b69ff
...
...
@@ -16,30 +16,13 @@
# under the License.
# Minimum docker image for demo purposes
# prebuilt-image: tvmai/demo-gpu
FROM nvidia/cuda:9.0-cudnn7-devel
RUN apt-get update --fix-missing
COPY install/ubuntu_install_core.sh /install/ubuntu_install_core.sh
RUN bash /install/ubuntu_install_core.sh
# Python: basic dependencies
RUN apt-get update && apt-get install -y python3-dev python3-pip
RUN pip3 install numpy pytest cython decorator scipy
# LLVM
RUN echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main \
>> /etc/apt/sources.list.d/llvm.list && \
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - && \
apt-get update && apt-get install -y --force-yes llvm-6.0
# CI docker GPU env
# tag: v0.54
FROM tvmai/ci-gpu:v0.54
# Jupyter notebook.
RUN pip3 install matplotlib Image Pillow jupyter[notebook]
# Deep learning frameworks
RUN pip3 install mxnet tensorflow keras gluoncv dgl
# Build TVM
COPY install/install_tvm_gpu.sh /install/install_tvm_gpu.sh
RUN bash /install/install_tvm_gpu.sh
...
...
docker/install/install_tvm_cpu.sh
View file @
c93b69ff
...
...
@@ -6,9 +6,9 @@
# 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
...
...
@@ -23,7 +23,10 @@ set -o pipefail
cd
/usr
git clone
--depth
=
1 https://github.com/dmlc/tvm
--recursive
cd
/usr/tvm
echo set
\(
USE_LLVM llvm-config-6.0
\)
>>
config.cmake
# checkout a hash-tag
git checkout 4b13bf668edc7099b38d463e5db94ebc96c80470
echo set
\(
USE_LLVM llvm-config-8
\)
>>
config.cmake
echo set
\(
USE_RPC ON
\)
>>
config.cmake
echo set
\(
USE_SORT ON
\)
>>
config.cmake
echo set
\(
USE_GRAPH_RUNTIME ON
\)
>>
config.cmake
...
...
docker/install/install_tvm_gpu.sh
View file @
c93b69ff
...
...
@@ -6,9 +6,9 @@
# 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
...
...
@@ -23,7 +23,10 @@ set -o pipefail
cd
/usr
git clone
--depth
=
1 https://github.com/dmlc/tvm
--recursive
cd
/usr/tvm
echo set
\(
USE_LLVM llvm-config-6.0
\)
>>
config.cmake
# checkout a hash-tag
git checkout 4b13bf668edc7099b38d463e5db94ebc96c80470
echo set
\(
USE_LLVM llvm-config-8
\)
>>
config.cmake
echo set
\(
USE_CUDA ON
\)
>>
config.cmake
echo set
\(
USE_CUDNN ON
\)
>>
config.cmake
echo set
\(
USE_RPC ON
\)
>>
config.cmake
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment