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

DLR Building on Jetson Device Throws unhandled errors #409

Open
mycpuorg opened this issue Jan 31, 2022 · 2 comments
Open

DLR Building on Jetson Device Throws unhandled errors #409

mycpuorg opened this issue Jan 31, 2022 · 2 comments

Comments

@mycpuorg
Copy link

DLR Build Machine (and target machine both) is NVidia Jetson Xavier AGX.
Ubuntu 18.04 JetPack4.6

Software Info:

xavier:~$ jetson_release 
 - NVIDIA Jetson AGX Xavier [16GB]
   * Jetpack 4.6 [L4T 32.6.1]
   * NV Power Mode: MODE_15W_DESKTOP - Type: 7
   * jetson_stats.service: active
 - Libraries:
   * CUDA: 10.2.300
   * cuDNN: 8.2.1.32
   * TensorRT: 8.0.1.6
   * Visionworks: 1.6.0.501
   * OpenCV: 4.1.1 compiled CUDA: NO
   * VPI: ii libnvvpi1 1.1.15 arm64 NVIDIA Vision Programming Interface library
   * Vulkan: 1.2.70

Steps

  • Follow directions to build DLR on Jetson here
[ 55%] Building CXX object 3rdparty/tvm/CMakeFiles/tvm_runtime_static.dir/src/runtime/contrib/random/random.cc.o
[ 60%] Building CUDA object CMakeFiles/objdlr.dir/3rdparty/tvm/src/runtime/contrib/thrust/thrust.cu.o
In file included from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.h:36:0,
                 from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.cc:25:
/home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_logger.h:42:8: error: looser throw specifier for ‘virtual void tvm::runtime::contrib::TensorRTLogger::log(nvinfer1::ILogger::Severity, const char*)’
   void log(Severity severity, const char* msg) override {
        ^~~
In file included from /usr/include/aarch64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
                 from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.h:35,
                 from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.cc:25:
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:1222:18: error:   overriding ‘virtual void nvinfer1::ILogger::log(nvinfer1::ILogger::Severity, const AsciiChar*) noexcept’
     virtual void log(Severity severity, AsciiChar const* msg) noexcept = 0;
                  ^~~
In file included from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.h:36:0,
                 from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_runtime.cc:37:
/home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_logger.h:42:8: error: looser throw specifier for ‘virtual void tvm::runtime::contrib::TensorRTLogger::log(nvinfer1::ILogger::Severity, const char*)’
   void log(Severity severity, const char* msg) override {
        ^~~
In file included from /usr/include/aarch64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
                 from /home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_runtime.cc:36:
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:1222:18: error:   overriding ‘virtual void nvinfer1::ILogger::log(nvinfer1::ILogger::Severity, const AsciiChar*) noexcept’
     virtual void log(Severity severity, AsciiChar const* msg) noexcept = 0;
                  ^~~
CMakeFiles/objdlr.dir/build.make:271: recipe for target 'CMakeFiles/objdlr.dir/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.cc.o' failed
make[2]: *** [CMakeFiles/objdlr.dir/3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_builder.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/ubuntu/software/neo-ai-dlr/3rdparty/tvm/include/tvm/runtime/container/shape_tuple.h(136): warning: pointless comparison of unsigned integer with zero

@mycpuorg mycpuorg changed the title DLR Building on Jetson Device Throws possibly unhandled errors DLR Building on Jetson Device Throws unhandled errors Jan 31, 2022
@apivovarov
Copy link
Member

The issue was fixed in TVM in this PR https://github.com/apache/tvm/pull/8607/files

Workaround:
edit 3rdparty/tvm/src/runtime/contrib/tensorrt/tensorrt_logger.h and add noexcept to log method on Line 42

  void log(Severity severity, const char* msg) noexcept override {

@mycpuorg
Copy link
Author

mycpuorg commented Feb 4, 2022

@apivovarov Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants