From 30e3356324322b633ca26c8653321af50853addf Mon Sep 17 00:00:00 2001 From: Kellen Sunderland Date: Fri, 22 Jun 2018 17:18:33 +0200 Subject: [PATCH] Attempt work around read only volumes --- ci/docker/runtime_functions.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh index 340943fcad81..c0da8df447c7 100755 --- a/ci/docker/runtime_functions.sh +++ b/ci/docker/runtime_functions.sh @@ -442,10 +442,9 @@ build_ubuntu_gpu() { build_ubuntu_gpu_tensorrt() { set -ex - pushd . - pushd . - # Install ONNX + # Build ONNX + pushd . echo "TensorRT build enabled. Installing ONNX." cd 3rdparty/onnx-tensorrt/third_party/onnx rm -rf build @@ -456,24 +455,23 @@ build_ubuntu_gpu_tensorrt() { -DBUILD_SHARED_LIBS=ON ..\ -G Ninja ninja -v - ldconfig - cd .. - mkdir /usr/include/x86_64-linux-gnu/onnx - cp build/onnx/onnx*pb.* /usr/include/x86_64-linux-gnu/onnx - cp build/libonnx.so /usr/local/lib - ldconfig + mkdir /work/mxnet/onnx/ + cp onnx/onnx*pb.* /work/mxnet/onnx/ + mkdir /work/mxnet/deps/ + cp libonnx.so /work/mxnet/deps/lib popd - # Install ONNX-TensorRT + # Build ONNX-TensorRT + pushd . cd 3rdparty/onnx-tensorrt/ mkdir build cd build cmake .. make -j$(nproc) - make install - ldconfig + # make install popd + rm -rf build make \ DEV=1 \ USE_BLAS=openblas \