benz725 commented on issue #19731:
URL:
https://github.com/apache/incubator-mxnet/issues/19731#issuecomment-757486048
> Did you run this successfully:
>
> ```
> # Build ONNX
> pushd .
> echo "Installing ONNX."
> cd 3rdparty/onnx-tensorrt/third_party/onnx
> rm -rf build
> mkdir -p build
> cd build
> cmake -DCMAKE_CXX_FLAGS=-I/usr/include/python${PYVER}
-DBUILD_SHARED_LIBS=ON ..
> make -j$(nproc)
> export LIBRARY_PATH=`pwd`:`pwd`/onnx/:$LIBRARY_PATH
> export CPLUS_INCLUDE_PATH=`pwd`:$CPLUS_INCLUDE_PATH
> export CXXFLAGS=-I`pwd`
>
> popd
>
> # Build ONNX-TensorRT
> export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
> export
CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:/usr/local/cuda-10.2/targets/x86_64-linux/include/
> pushd .
> cd 3rdparty/onnx-tensorrt/
> mkdir -p build
> cd build
> cmake -DONNX_NAMESPACE=$ONNX_NAMESPACE ..
> make -j$(nproc)
> export LIBRARY_PATH=`pwd`:$LIBRARY_PATH
> popd
>
> mkdir -p /work/mxnet/lib/
> cp 3rdparty/onnx-tensorrt/third_party/onnx/build/*.so
/work/mxnet/lib/
> cp -L 3rdparty/onnx-tensorrt/build/libnvonnxparser.so /work/mxnet/lib/
> ```
>
> If yes, what is the outputs of :
>
> ```
> ls 3rdparty/onnx-tensorrt/third_party/onnx/onnx
> ```
>
> and finally, can you verify if this path is part of `$LIBRARY_PATH`?
the result of the "ls 3rdparty/onnx-tensorrt/third_party/onnx/onnx" is :
backend onnxifi_dummy.c onnx_pb.h
bin onnxifi_ext.h onnx.proto
checker.cc onnxifi.h onnx.proto3
checker.h onnxifi_loader.c optimizer
checker.py onnxifi_loader.h optimizer.py
common onnxifi_utils.cc proto_utils.h
cpp2py_export.cc onnxifi_utils.h py_utils.h
defs onnxifi_wrapper.c shape_inference
examples onnx.in.proto shape_inference.py
external_data_helper.py onnx-ml.proto string_utils.h
frontend onnx-ml.proto3 test
gen_proto.py onnx-operators.in.proto tools
helper.py onnx-operators-ml.proto utils.py
__init__.py onnx-operators-ml.proto3 version_converter
mapping.py onnx-operators_pb.h version_converter.py
numpy_helper.py onnx-operators.proto
onnx_cpp2py_export onnx-operators.proto3
what's the meaning of these three line?
mkdir -p /work/mxnet/lib/
cp 3rdparty/onnx-tensorrt/third_party/onnx/build/*.so /work/mxnet/lib/
cp -L 3rdparty/onnx-tensorrt/build/libnvonnxparser.so /work/mxnet/lib/
the /work/mxnet/lib/ is also must be in the `$LIBRARY_PATH`?
@Kh4L @leezu
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]