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
dc5f70ad
Unverified
Commit
dc5f70ad
authored
Nov 13, 2019
by
Tianqi Chen
Committed by
GitHub
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI][DOCKER] Add ONNX runtime dep (#4314)
* [DOCKER] Add ONNX runtime dep * Improve ci script
parent
dab7172a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
Jenkinsfile
+14
-12
docker/install/ubuntu_install_onnx.sh
+1
-0
tests/scripts/task_python_frontend.sh
+1
-0
tests/scripts/task_python_integration.sh
+2
-0
No files found.
Jenkinsfile
View file @
dc5f70ad
...
@@ -64,6 +64,8 @@ docker_run = 'docker/bash.sh'
...
@@ -64,6 +64,8 @@ docker_run = 'docker/bash.sh'
// timeout in minutes
// timeout in minutes
max_time
=
120
max_time
=
120
workspace
=
'workspace/exec_${EXECUTOR_NUMBER}'
// initialize source codes
// initialize source codes
def
init_git
()
{
def
init_git
()
{
checkout
scm
checkout
scm
...
@@ -86,7 +88,7 @@ def init_git_win() {
...
@@ -86,7 +88,7 @@ def init_git_win() {
stage
(
"Sanity Check"
)
{
stage
(
"Sanity Check"
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
node
(
'CPU'
)
{
node
(
'CPU'
)
{
ws
(
'
workspace
/tvm/sanity'
)
{
ws
(
'
${workspace}
/tvm/sanity'
)
{
init_git
()
init_git
()
sh
"${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh"
sh
"${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh"
}
}
...
@@ -134,7 +136,7 @@ def unpack_lib(name, libs) {
...
@@ -134,7 +136,7 @@ def unpack_lib(name, libs) {
stage
(
'Build'
)
{
stage
(
'Build'
)
{
parallel
'BUILD: GPU'
:
{
parallel
'BUILD: GPU'
:
{
node
(
'GPUBUILD'
)
{
node
(
'GPUBUILD'
)
{
ws
(
'
workspace
/tvm/build-gpu'
)
{
ws
(
'
${workspace}
/tvm/build-gpu'
)
{
init_git
()
init_git
()
sh
"""
sh
"""
mkdir -p build
mkdir -p build
...
@@ -182,7 +184,7 @@ stage('Build') {
...
@@ -182,7 +184,7 @@ stage('Build') {
},
},
'BUILD: CPU'
:
{
'BUILD: CPU'
:
{
node
(
'CPU'
)
{
node
(
'CPU'
)
{
ws
(
'
workspace
/tvm/build-cpu'
)
{
ws
(
'
${workspace}
/tvm/build-cpu'
)
{
init_git
()
init_git
()
sh
"""
sh
"""
mkdir -p build
mkdir -p build
...
@@ -214,7 +216,7 @@ stage('Build') {
...
@@ -214,7 +216,7 @@ stage('Build') {
},
},
'BUILD : i386'
:
{
'BUILD : i386'
:
{
node
(
'CPU'
)
{
node
(
'CPU'
)
{
ws
(
'
workspace
/tvm/build-i386'
)
{
ws
(
'
${workspace}
/tvm/build-i386'
)
{
init_git
()
init_git
()
sh
"""
sh
"""
mkdir -p build
mkdir -p build
...
@@ -239,7 +241,7 @@ stage('Build') {
...
@@ -239,7 +241,7 @@ stage('Build') {
stage
(
'Unit Test'
)
{
stage
(
'Unit Test'
)
{
parallel
'python3: GPU'
:
{
parallel
'python3: GPU'
:
{
node
(
'TensorCore'
)
{
node
(
'TensorCore'
)
{
ws
(
'
workspace
/tvm/ut-python-gpu'
)
{
ws
(
'
${workspace}
/tvm/ut-python-gpu'
)
{
init_git
()
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -251,7 +253,7 @@ stage('Unit Test') {
...
@@ -251,7 +253,7 @@ stage('Unit Test') {
},
},
'python3: i386'
:
{
'python3: i386'
:
{
node
(
'CPU'
)
{
node
(
'CPU'
)
{
ws
(
'
workspace
/tvm/ut-python-i386'
)
{
ws
(
'
${workspace}
/tvm/ut-python-i386'
)
{
init_git
()
init_git
()
unpack_lib
(
'i386'
,
tvm_multilib
)
unpack_lib
(
'i386'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -264,7 +266,7 @@ stage('Unit Test') {
...
@@ -264,7 +266,7 @@ stage('Unit Test') {
},
},
'java: GPU'
:
{
'java: GPU'
:
{
node
(
'GPU'
)
{
node
(
'GPU'
)
{
ws
(
'
workspace
/tvm/ut-java'
)
{
ws
(
'
${workspace}
/tvm/ut-java'
)
{
init_git
()
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -278,7 +280,7 @@ stage('Unit Test') {
...
@@ -278,7 +280,7 @@ stage('Unit Test') {
stage
(
'Integration Test'
)
{
stage
(
'Integration Test'
)
{
parallel
'topi: GPU'
:
{
parallel
'topi: GPU'
:
{
node
(
'GPU'
)
{
node
(
'GPU'
)
{
ws
(
'
workspace
/tvm/topi-python-gpu'
)
{
ws
(
'
${workspace}
/tvm/topi-python-gpu'
)
{
init_git
()
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -289,7 +291,7 @@ stage('Integration Test') {
...
@@ -289,7 +291,7 @@ stage('Integration Test') {
},
},
'frontend: GPU'
:
{
'frontend: GPU'
:
{
node
(
'GPU'
)
{
node
(
'GPU'
)
{
ws
(
'
workspace
/tvm/frontend-python-gpu'
)
{
ws
(
'
${workspace}
/tvm/frontend-python-gpu'
)
{
init_git
()
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -300,7 +302,7 @@ stage('Integration Test') {
...
@@ -300,7 +302,7 @@ stage('Integration Test') {
},
},
'legacy: GPU'
:
{
'legacy: GPU'
:
{
node
(
'GPU'
)
{
node
(
'GPU'
)
{
ws
(
'
workspace
/tvm/legacy-python-gpu'
)
{
ws
(
'
${workspace}
/tvm/legacy-python-gpu'
)
{
init_git
()
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -311,7 +313,7 @@ stage('Integration Test') {
...
@@ -311,7 +313,7 @@ stage('Integration Test') {
},
},
'docs: GPU'
:
{
'docs: GPU'
:
{
node
(
'GPU'
)
{
node
(
'GPU'
)
{
ws
(
'
workspace
/tvm/docs-python-gpu'
)
{
ws
(
'
${workspace}
/tvm/docs-python-gpu'
)
{
init_git
()
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
...
@@ -343,7 +345,7 @@ stage('Build packages') {
...
@@ -343,7 +345,7 @@ stage('Build packages') {
stage
(
'Deploy'
)
{
stage
(
'Deploy'
)
{
node
(
'doc'
)
{
node
(
'doc'
)
{
ws
(
'
workspace
/tvm/deploy-docs'
)
{
ws
(
'
${workspace}
/tvm/deploy-docs'
)
{
if
(
env
.
BRANCH_NAME
==
"master"
)
{
if
(
env
.
BRANCH_NAME
==
"master"
)
{
unpack_lib
(
'mydocs'
,
'docs.tgz'
)
unpack_lib
(
'mydocs'
,
'docs.tgz'
)
sh
"tar xf docs.tgz -C /var/docs"
sh
"tar xf docs.tgz -C /var/docs"
...
...
docker/install/ubuntu_install_onnx.sh
View file @
dc5f70ad
...
@@ -22,6 +22,7 @@ set -o pipefail
...
@@ -22,6 +22,7 @@ set -o pipefail
# fix to certain version for now
# fix to certain version for now
pip3 install
onnx
==
1.5.0
pip3 install
onnx
==
1.5.0
pip3 install
onnxruntime
==
1.0.0
# torch depends on a number of other packages, but unhelpfully, does
# torch depends on a number of other packages, but unhelpfully, does
# not expose that in the wheel!!!
# not expose that in the wheel!!!
...
...
tests/scripts/task_python_frontend.sh
View file @
dc5f70ad
...
@@ -21,6 +21,7 @@ set -u
...
@@ -21,6 +21,7 @@ set -u
export
PYTHONPATH
=
nnvm/python:python:topi/python
export
PYTHONPATH
=
nnvm/python:python:topi/python
# to avoid openblas threading error
# to avoid openblas threading error
export
TVM_BIND_THREADS
=
0
export
OMP_NUM_THREADS
=
1
export
OMP_NUM_THREADS
=
1
# Rebuild cython
# Rebuild cython
...
...
tests/scripts/task_python_integration.sh
View file @
dc5f70ad
...
@@ -21,6 +21,8 @@ set -u
...
@@ -21,6 +21,8 @@ set -u
export
PYTHONPATH
=
python:topi/python:apps/extension/python
export
PYTHONPATH
=
python:topi/python:apps/extension/python
export
LD_LIBRARY_PATH
=
"build:
${
LD_LIBRARY_PATH
:-}
"
export
LD_LIBRARY_PATH
=
"build:
${
LD_LIBRARY_PATH
:-}
"
export
TVM_BIND_THREADS
=
0
export
TVM_NUM_THREADS
=
2
rm
-rf
python/tvm/
*
.pyc python/tvm/
*
/
*
.pyc python/tvm/
*
/
*
/
*
.pyc
rm
-rf
python/tvm/
*
.pyc python/tvm/
*
/
*
.pyc python/tvm/
*
/
*
/
*
.pyc
...
...
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