Multitarget-tracker icon indicating copy to clipboard operation
Multitarget-tracker copied to clipboard

about tensorrt compile error

Open Mickeyyyang opened this issue 3 years ago • 4 comments

Make the project by -DBUILD_YOLO_TENSORRT=ON, the following error message appears: (My tensorrt: 7.2.3.4) #######################################################################################

In file included from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/logging.h:21:0, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/logger.h:20, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/common.h:34, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/BatchStream.h:20, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/YoloONNX.hpp:3, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/YoloONNX.cpp:3: /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:165:15: error: ‘TacticSources’ in namespace ‘nvinfer1’ does not name a type nvinfer1::TacticSources enabledTactics{0}; ^~~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:165:46: error: extra ‘;’ [-Wpedantic] nvinfer1::TacticSources enabledTactics{0}; ^ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:166:15: error: ‘TacticSources’ in namespace ‘nvinfer1’ does not name a type nvinfer1::TacticSources disabledTactics{0}; ^~~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:166:47: error: extra ‘;’ [-Wpedantic] nvinfer1::TacticSources disabledTactics{0}; ^ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp: In member function ‘virtual void sample::BuildOptions::parse(sample::Arguments&)’: /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:851:23: error: ‘TacticSource’ is not a member of ‘nvinfer1’ nvinfer1::TacticSource source{}; ^~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:17: error: ‘source’ was not declared in this scope source = nvinfer1::TacticSource::kCUBLAS; ^~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:17: note: suggested alternative: ‘double’ source = nvinfer1::TacticSource::kCUBLAS; ^~~~~~ double /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:36: error: ‘nvinfer1::TacticSource’ has not been declared source = nvinfer1::TacticSource::kCUBLAS; ^~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:17: error: ‘source’ was not declared in this scope source = nvinfer1::TacticSource::kCUBLAS_LT; ^~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:17: note: suggested alternative: ‘double’ source = nvinfer1::TacticSource::kCUBLAS_LT; ^~~~~~ double /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:36: error: ‘nvinfer1::TacticSource’ has not been declared source = nvinfer1::TacticSource::kCUBLAS_LT; ^~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:872:62: error: ‘source’ was not declared in this scope uint32_t sourceBit = 1U << static_cast<uint32_t>(source); ^~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:872:62: note: suggested alternative: ‘sourceBit’ uint32_t sourceBit = 1U << static_cast<uint32_t>(source); ^~~~~~ sourceBit /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:876:17: error: ‘enabledTactics’ was not declared in this scope enabledTactics |= sourceBit; ^~~~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:880:17: error: ‘disabledTactics’ was not declared in this scope disabledTactics |= sourceBit; ^~~~~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:883:17: error: ‘enabledTactics’ was not declared in this scope if (enabledTactics & disabledTactics) ^~~~~~~~~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:883:34: error: ‘disabledTactics’ was not declared in this scope if (enabledTactics & disabledTactics) #######################################################################################

Mickeyyyang avatar Oct 16 '22 08:10 Mickeyyyang

Thnx for report, I'll try to build on this version of TensorRT

Nuzhny007 avatar Oct 17 '22 08:10 Nuzhny007

OK. Me: python 3.7 cuda: 11.0 cudnn: 8.1.x

Sergey Nuzhny @.***> 于2022年10月17日周一 16:10写道:

Thnx for report, I'll try to build on this version of TensorRT

— Reply to this email directly, view it on GitHub https://github.com/Smorodov/Multitarget-tracker/issues/397#issuecomment-1280456725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANV4VKHRLYVWHQHFSX5DMJ3WDUCWPANCNFSM6AAAAAARGIASYM . You are receiving this because you authored the thread.Message ID: @.***>

Mickeyyyang avatar Oct 17 '22 08:10 Mickeyyyang

It's really don't work with this version of TensorRT. If you can update libraries to 8.4 version then all will working. Now I'll fix that

Nuzhny007 avatar Oct 19 '22 09:10 Nuzhny007

OK, I will try. Thanks!

Mickeyyyang avatar Oct 19 '22 09:10 Mickeyyyang