benz725 commented on issue #19731:
URL:
https://github.com/apache/incubator-mxnet/issues/19731#issuecomment-757481526
> `usr/local/TensorRT-7.2.1.6` is a non-standard tensorrt directory. So you
need to specify `-DTENSORRT_ROOT=/usr/local/TensorRT-7.2.1.6`
OK, I compiled it correctly.
but when I do make, it reported error again....
I only paste part of it, like this:
In file included from
/home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/third_party/onnx/onnx/defs/schema.h:24:0,
from
/home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/third_party/onnx/onnx/defs/nn/defs.cc:7:
/home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/third_party/onnx/onnx/defs/shape_inference.h:
In function ‘bool
onnx2trt_onnx::getRepeatedAttribute(onnx2trt_onnx::InferenceContext&,
std::__cxx11::string, std::vector<T>&) [with T = long int]’:
/home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/third_party/onnx/onnx/defs/shape_inference.h:83:1:
warning: control reaches end of non-void function [-Wreturn-type]
}
^
third_party/onnx/CMakeFiles/onnx.dir/build.make:315: recipe for target
'third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o' failed
make[2]: *** [third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o]
Error 1
third_party/onnx/CMakeFiles/onnx.dir/build.make:302: recipe for target
'third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o' failed
make[2]: *** [third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o]
Error 1
third_party/onnx/CMakeFiles/onnx.dir/build.make:81: recipe for target
'third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o' failed
make[2]: *** [third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o] Error 1
CMakeFiles/Makefile2:321: recipe for target
'third_party/onnx/CMakeFiles/onnx.dir/all' failed
make[1]: *** [third_party/onnx/CMakeFiles/onnx.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
[ 59%] Linking CXX shared library libnvonnxparser.so
[ 59%] Built target nvonnxparser
[ 60%] Linking CXX static library libnvonnxparser_static.a
[ 60%] Built target nvonnxparser_static
Makefile:170: recipe for target 'all' failed
make: *** [all] Error 2
@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]