Fatal error: cub/cub.cuh: No such file or directory #include "cub/cub.cuh"

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

I am trying to test maskrcnn in Xavier.
Enginer can’t be produced with the following errors.

ERROR: [TRT]: UffParser: Validator error: multilevel_propose_rois: Unsupported operation _MultilevelProposeROI_TRT

Then followed the instructions here and downloaded this version
6.0 GA 4.6 TRT 8.0.1 release/8.0
Configured with the following command.
cmake .. -DGPU_ARCHS="53 62 72 75" -DTRT_LIB_DIR=/usr/lib/aarch64-linux-gnu/ -DCMAKE_C_COMPILER=/usr/bin/gcc -DTRT_BIN_DIR=pwd/out

When build the error is

/opt/nvidia/deepstream/deepstream-6.0/sources/TensorRT/plugin/efficientNMSPlugin/efficientNMSInference.cu:18:10: fatal error: cub/cub.cuh: No such file or directory
 #include "cub/cub.cuh"
compilation terminated.

How to solve?

GPU_ARCHS is 72 for Xavier.

I solved by including path /opt/nvidia/deepstream/deepstream-6.0/sources/TensorRT/third_party/cub
to include_directories in CmakeLists.txt

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.