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

Fix missing header in dev branch of 3rdparty/tvm #77

Merged
merged 3 commits into from Jul 25, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 11 additions & 5 deletions Jenkinsfile
Expand Up @@ -9,7 +9,7 @@ def cloudTargetMatrix = [
]

def inferenceContainerApps = [
"xgboost", "image_classification"
["xgboost", "cpu"], ["image_classification", "cpu"], ["image_classification", "gpu"]
]

/* Pipeline definition */
Expand Down Expand Up @@ -61,7 +61,7 @@ pipeline {
steps {
script {
parallel (inferenceContainerApps.collectEntries{
[(it): { BuildInferenceContainer(it) } ]
[(it[0] + '-' + it[1]): { BuildInferenceContainer(it[0], it[1]) } ]
})
}
}
Expand Down Expand Up @@ -155,14 +155,20 @@ def CloudInstallAndTest(cloudTarget) {
}

// Build DLR inference containers
def BuildInferenceContainer(app) {
def BuildInferenceContainer(app, target) {
def nodeReq = "ubuntu && amd64 && cpu-build"
node(nodeReq) {
unstash name: 'srcs'
echo "Building inference container ${app}"
echo "Building inference container ${app} for target ${target}"
if (target == "gpu") {
// Download TensorRT library
s3Download(file: 'container/TensorRT-5.0.2.6.Ubuntu-18.04.1.x86_64-gnu.cuda-10.0.cudnn7.3.tar.gz',
bucket: 'neo-ai-dlr-jenkins-artifacts',
path: 'TensorRT-5.0.2.6.Ubuntu-18.04.1.x86_64-gnu.cuda-10.0.cudnn7.3.tar.gz')
}
sh """
cd container
docker build --build-arg APP=${app} -t ${app}-cpu -f Dockerfile.cpu .
docker build --build-arg APP=${app} -t ${app}-${target} -f Dockerfile.${target} .
"""
}
}
1 change: 1 addition & 0 deletions container/Dockerfile.gpu
Expand Up @@ -42,6 +42,7 @@ RUN mkdir -p /home/model-server && cd /home/model-server \
&& git submodule update --init --recursive \
&& cd 3rdparty/tvm \
&& git checkout dev \
&& sed -i '1s;^;#include <cstring>\n;' src/runtime/cuda/cuda_device_api.cc \
&& cd ../.. \
&& mkdir build && cd build && cmake .. -DUSE_CUDA=ON -DUSE_CUDNN=ON -DUSE_TENSORRT=/packages/TensorRT-5.0.2.6 \
&& make -j15 && cd ../python && python3 setup.py bdist_wheel \
Expand Down