Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Attempt work around read only volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
KellenSunderland authored and Marek Kolodziej committed Jun 22, 2018
1 parent 7d84335 commit 30e3356
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 30e3356

Please sign in to comment.