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

[CI][DOCKER] Add ONNX runtime dep #4314

Merged
merged 2 commits into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
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
26 changes: 14 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ docker_run = 'docker/bash.sh'
// timeout in minutes
max_time = 120

workspace = 'workspace/exec_${EXECUTOR_NUMBER}'

// initialize source codes
def init_git() {
checkout scm
Expand All @@ -86,7 +88,7 @@ def init_git_win() {
stage("Sanity Check") {
timeout(time: max_time, unit: 'MINUTES') {
node('CPU') {
ws('workspace/tvm/sanity') {
ws('${workspace}/tvm/sanity') {
init_git()
sh "${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh"
}
Expand Down Expand Up @@ -134,7 +136,7 @@ def unpack_lib(name, libs) {
stage('Build') {
parallel 'BUILD: GPU': {
node('GPUBUILD') {
ws('workspace/tvm/build-gpu') {
ws('${workspace}/tvm/build-gpu') {
init_git()
sh """
mkdir -p build
Expand Down Expand Up @@ -182,7 +184,7 @@ stage('Build') {
},
'BUILD: CPU': {
node('CPU') {
ws('workspace/tvm/build-cpu') {
ws('${workspace}/tvm/build-cpu') {
init_git()
sh """
mkdir -p build
Expand Down Expand Up @@ -214,7 +216,7 @@ stage('Build') {
},
'BUILD : i386': {
node('CPU') {
ws('workspace/tvm/build-i386') {
ws('${workspace}/tvm/build-i386') {
init_git()
sh """
mkdir -p build
Expand All @@ -239,7 +241,7 @@ stage('Build') {
stage('Unit Test') {
parallel 'python3: GPU': {
node('TensorCore') {
ws('workspace/tvm/ut-python-gpu') {
ws('${workspace}/tvm/ut-python-gpu') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand All @@ -251,7 +253,7 @@ stage('Unit Test') {
},
'python3: i386': {
node('CPU') {
ws('workspace/tvm/ut-python-i386') {
ws('${workspace}/tvm/ut-python-i386') {
init_git()
unpack_lib('i386', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand All @@ -264,7 +266,7 @@ stage('Unit Test') {
},
'java: GPU': {
node('GPU') {
ws('workspace/tvm/ut-java') {
ws('${workspace}/tvm/ut-java') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand All @@ -278,7 +280,7 @@ stage('Unit Test') {
stage('Integration Test') {
parallel 'topi: GPU': {
node('GPU') {
ws('workspace/tvm/topi-python-gpu') {
ws('${workspace}/tvm/topi-python-gpu') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand All @@ -289,7 +291,7 @@ stage('Integration Test') {
},
'frontend: GPU': {
node('GPU') {
ws('workspace/tvm/frontend-python-gpu') {
ws('${workspace}/tvm/frontend-python-gpu') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand All @@ -300,7 +302,7 @@ stage('Integration Test') {
},
'legacy: GPU': {
node('GPU') {
ws('workspace/tvm/legacy-python-gpu') {
ws('${workspace}/tvm/legacy-python-gpu') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand All @@ -311,7 +313,7 @@ stage('Integration Test') {
},
'docs: GPU': {
node('GPU') {
ws('workspace/tvm/docs-python-gpu') {
ws('${workspace}/tvm/docs-python-gpu') {
init_git()
unpack_lib('gpu', tvm_multilib)
timeout(time: max_time, unit: 'MINUTES') {
Expand Down Expand Up @@ -343,7 +345,7 @@ stage('Build packages') {

stage('Deploy') {
node('doc') {
ws('workspace/tvm/deploy-docs') {
ws('${workspace}/tvm/deploy-docs') {
if (env.BRANCH_NAME == "master") {
unpack_lib('mydocs', 'docs.tgz')
sh "tar xf docs.tgz -C /var/docs"
Expand Down
1 change: 1 addition & 0 deletions docker/install/ubuntu_install_onnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set -o pipefail

# fix to certain version for now
pip3 install onnx==1.5.0
pip3 install onnxruntime==1.0.0

# torch depends on a number of other packages, but unhelpfully, does
# not expose that in the wheel!!!
Expand Down
1 change: 1 addition & 0 deletions tests/scripts/task_python_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set -u

export PYTHONPATH=nnvm/python:python:topi/python
# to avoid openblas threading error
export TVM_BIND_THREADS=0
export OMP_NUM_THREADS=1

# Rebuild cython
Expand Down
2 changes: 2 additions & 0 deletions tests/scripts/task_python_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ set -u

export PYTHONPATH=python:topi/python:apps/extension/python
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

Expand Down